Skip to content

Commit 703740c

Browse files
vchskecelikcigdem
authored andcommitted
Adding objects necessary for mapping Oracle schemas and tables to PostgreSQL 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
1 parent b043d9d commit 703740c

File tree

2 files changed

+162
-0
lines changed

2 files changed

+162
-0
lines changed

specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/OracleAzureDbPostgreSqlSyncTask.json

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,120 @@
9797
"description": "Target server brand version",
9898
"readOnly": true
9999
},
100+
"validationErrors": {
101+
"description": "Validation errors associated with the task",
102+
"type": "array",
103+
"items": {
104+
"$ref": "./Common.json#/definitions/ReportableException"
105+
},
106+
"readOnly": true
107+
},
108+
"databaseSchemaMap": {
109+
"type": "array",
110+
"description": "Mapping of schemas per database",
111+
"items": {
112+
"type": "object",
113+
"properties": {
114+
"database": {
115+
"type": "string"
116+
},
117+
"schemas": {
118+
"type": "array",
119+
"items": {
120+
"type": "string"
121+
}
122+
}
123+
}
124+
}
125+
}
126+
}
127+
},
128+
"GetUserTablesOracleTaskInput": {
129+
"type": "object",
130+
"description": "Input for the task that gets the list of tables contained within a provided list of Oracle schemas.",
131+
"properties": {
132+
"connectionInfo": {
133+
"$ref": "./Common.json#/definitions/OracleConnectionInfo",
134+
"description": "Information for connecting to Oracle source"
135+
},
136+
"selectedSchemas": {
137+
"type": "array",
138+
"description": "List of Oracle schemas for which to collect tables",
139+
"items": {
140+
"type": "string"
141+
}
142+
}
143+
},
144+
"required": [
145+
"connectionInfo",
146+
"selectedSchemas"
147+
]
148+
},
149+
"GetUserTablesOracleTaskOutput": {
150+
"type": "object",
151+
"description": "Output for the task that gets the list of tables contained within a provided list of Oracle schemas.",
152+
"properties": {
153+
"schemaName": {
154+
"type": "string",
155+
"description": "The schema this result is for",
156+
"readOnly": true
157+
},
158+
"tables": {
159+
"type": "array",
160+
"description": "List of valid tables found for this schema",
161+
"items": {
162+
"$ref": "./TasksCommon.json#/definitions/DatabaseTable"
163+
},
164+
"readOnly": true
165+
},
166+
"validationErrors": {
167+
"description": "Validation errors associated with the task",
168+
"type": "array",
169+
"items": {
170+
"$ref": "./Common.json#/definitions/ReportableException"
171+
},
172+
"readOnly": true
173+
}
174+
}
175+
},
176+
"GetUserTablesPostgreSqlTaskInput": {
177+
"type": "object",
178+
"description": "Input for the task that gets the list of tables for a provided list of PostgreSQL databases.",
179+
"properties": {
180+
"connectionInfo": {
181+
"$ref": "./Common.json#/definitions/PostgreSqlConnectionInfo",
182+
"description": "Information for connecting to PostgreSQL source"
183+
},
184+
"selectedDatabases": {
185+
"type": "array",
186+
"description": "List of PostgreSQL databases for which to collect tables",
187+
"items": {
188+
"type": "string"
189+
}
190+
}
191+
},
192+
"required": [
193+
"connectionInfo",
194+
"selectedDatabases"
195+
]
196+
},
197+
"GetUserTablesPostgreSqlTaskOutput": {
198+
"type": "object",
199+
"description": "Output for the task that gets the list of tables for a provided list of PostgreSQL databases.",
200+
"properties": {
201+
"databaseName": {
202+
"type": "string",
203+
"description": "The database this result is for",
204+
"readOnly": true
205+
},
206+
"tables": {
207+
"type": "array",
208+
"description": "List of valid tables found for this database",
209+
"items": {
210+
"$ref": "./TasksCommon.json#/definitions/DatabaseTable"
211+
},
212+
"readOnly": true
213+
},
100214
"validationErrors": {
101215
"description": "Validation errors associated with the task",
102216
"type": "array",

specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Tasks.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,54 @@
373373
}
374374
]
375375
},
376+
"GetUserTablesOracleTaskProperties": {
377+
"x-ms-discriminator-value": "GetUserTablesOracle",
378+
"type": "object",
379+
"description": "Properties for the task that collects user tables for the given list of Oracle schemas",
380+
"properties": {
381+
"input": {
382+
"description": "Task input",
383+
"$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesOracleTaskInput"
384+
},
385+
"output": {
386+
"description": "Task output. This is ignored if submitted.",
387+
"type": "array",
388+
"items": {
389+
"$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesOracleTaskOutput"
390+
},
391+
"readOnly": true
392+
}
393+
},
394+
"allOf": [
395+
{
396+
"$ref": "#/definitions/ProjectTaskProperties"
397+
}
398+
]
399+
},
400+
"GetUserTablesPostgreSqlTaskProperties": {
401+
"x-ms-discriminator-value": "GetUserTablesPostgreSql",
402+
"type": "object",
403+
"description": "Properties for the task that collects user tables for the given list of databases",
404+
"properties": {
405+
"input": {
406+
"description": "Task input",
407+
"$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesPostgreSqlTaskInput"
408+
},
409+
"output": {
410+
"description": "Task output. This is ignored if submitted.",
411+
"type": "array",
412+
"items": {
413+
"$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesPostgreSqlTaskOutput"
414+
},
415+
"readOnly": true
416+
}
417+
},
418+
"allOf": [
419+
{
420+
"$ref": "#/definitions/ProjectTaskProperties"
421+
}
422+
]
423+
},
376424
"ConnectToTargetSqlMITaskProperties": {
377425
"x-ms-discriminator-value": "ConnectToTarget.AzureSqlDbMI",
378426
"type": "object",

0 commit comments

Comments
 (0)