Skip to content

Commit 5c95253

Browse files
Fix review comment
1 parent 5f8274e commit 5c95253

1 file changed

Lines changed: 13 additions & 26 deletions

File tree

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/dataTransferService.json

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -233,30 +233,6 @@
233233
],
234234
"x-ms-discriminator-value": "AzureBlobStorage"
235235
},
236-
"DataTransferCreateJobProperties": {
237-
"description": "Properties to create Data Transfer Job.",
238-
"type": "object",
239-
"properties": {
240-
"source": {
241-
"$ref": "#/definitions/DataTransferDataSourceSink",
242-
"description": "Source DataStore details"
243-
},
244-
"destination": {
245-
"$ref": "#/definitions/DataTransferDataSourceSink",
246-
"description": "Destination DataStore details"
247-
},
248-
"workerCount": {
249-
"description": "Worker count",
250-
"type": "integer",
251-
"minimum": 0,
252-
"format": "int32"
253-
}
254-
},
255-
"required": [
256-
"source",
257-
"destination"
258-
]
259-
},
260236
"DataTransferJobProperties": {
261237
"description": "The properties of a DataTransfer Job",
262238
"type": "object",
@@ -297,22 +273,32 @@
297273
"format": "int32"
298274
},
299275
"error": {
276+
"readOnly": true,
300277
"$ref": "./cosmos-db.json#/definitions/ErrorResponse",
301278
"description": "Error response for Faulted job"
302279
}
303-
}
280+
},
281+
"required": [
282+
"source",
283+
"destination"
284+
]
304285
},
305286
"CreateJobRequest": {
306287
"description": "Parameters to create Data Transfer Job",
307288
"type": "object",
308289
"properties": {
309290
"properties": {
310-
"$ref": "#/definitions/DataTransferCreateJobProperties",
291+
"$ref": "#/definitions/DataTransferJobProperties",
311292
"description": "Data Transfer Create Job Properties"
312293
}
313294
},
314295
"required": [
315296
"properties"
297+
],
298+
"allOf": [
299+
{
300+
"$ref": "./cosmos-db.json#/definitions/ARMProxyResource"
301+
}
316302
]
317303
},
318304
"DataTransferJobGetResults": {
@@ -344,6 +330,7 @@
344330
"description": "List of Data Transfer jobs and their properties."
345331
},
346332
"nextLink": {
333+
"readOnly": true,
347334
"type": "string",
348335
"description": "URL to get the next set of Data Transfer job list results if there are any."
349336
}

0 commit comments

Comments
 (0)