From 090b0d9400beb594f0497feaa1dd9d5e3388ec6f Mon Sep 17 00:00:00 2001 From: zhanyu2014 Date: Mon, 30 Mar 2020 14:55:09 +0800 Subject: [PATCH 1/4] Enable excel in public swagger --- .../2018-06-01/entityTypes/Dataset.json | 50 +++++++++++++++++++ .../2018-06-01/entityTypes/Pipeline.json | 22 ++++++++ 2 files changed, 72 insertions(+) diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json index 8e1e0fcb1665..a0d04a784add 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json @@ -593,6 +593,56 @@ "location" ] }, + "ExcelDataset": { + "x-ms-discriminator-value": "Excel", + "description": "Excel dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Excel dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExcelDatasetTypeProperties" + } + } + }, + "ExcelDatasetTypeProperties": { + "description": "Excel dataset properties.", + "properties": { + "location": { + "$ref": "#/definitions/DatasetLocation", + "description": "The location of the excel storage." + }, + "sheetName": { + "type": "object", + "description": "The sheet of excel file. Type: string (or Expression with resultType string)." + }, + "range": { + "type": "object", + "description": "The partial data of one sheet. Type: string (or Expression with resultType string)." + }, + "firstRowAsHeader": { + "type": "object", + "description": "When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean)." + }, + "compression": { + "description": "The data compression method used for the json dataset.", + "$ref": "#/definitions/DatasetCompression" + }, + "nullValue": { + "type": "object", + "description": "The null value string. Type: string (or Expression with resultType string)." + } + }, + "required": [ + "location", + "sheetName" + ] + }, "ParquetDataset": { "x-ms-discriminator-value": "Parquet", "description": "Parquet dataset.", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json index 1a296d318ee1..886dab3e277d 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json @@ -888,6 +888,28 @@ } } }, + "ExcelSource": { + "description": "A copy activity excel source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "storeSettings": { + "$ref": "#/definitions/StoreReadSettings", + "description": "Excel store settings." + }, + "additionalColumns": { + "type": "array", + "description": "Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects).", + "items": { + "$ref": "#/definitions/AdditionalColumns" + } + } + } + }, "ParquetSource": { "description": "A copy activity Parquet source.", "type": "object", From 5f992bf8497c8c13d4bd2ad7651f02f9ae28945d Mon Sep 17 00:00:00 2001 From: zhanyu2014 Date: Wed, 6 May 2020 11:09:22 +0800 Subject: [PATCH 2/4] update --- .../stable/2018-06-01/entityTypes/DataFlow.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json index 3644a5838df0..3c68c77ab066 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json @@ -113,6 +113,10 @@ "dataset": { "description": "Dataset reference.", "$ref": "../datafactory.json#/definitions/DatasetReference" + }, + "linkedService": { + "description": "Linked service reference.", + "$ref": "../datafactory.json#/definitions/LinkedServiceReference" } } }, @@ -127,6 +131,10 @@ "dataset": { "description": "Dataset reference.", "$ref": "../datafactory.json#/definitions/DatasetReference" + }, + "linkedService": { + "description": "Linked service reference.", + "$ref": "../datafactory.json#/definitions/LinkedServiceReference" } } } From bbafcb25c3c63e7c9885ea799b7052b5524ae5a3 Mon Sep 17 00:00:00 2001 From: zhanyu2014 Date: Mon, 25 May 2020 14:27:53 +0800 Subject: [PATCH 3/4] rollback dataflow change --- .../stable/2018-06-01/entityTypes/DataFlow.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json index 3c68c77ab066..3644a5838df0 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json @@ -113,10 +113,6 @@ "dataset": { "description": "Dataset reference.", "$ref": "../datafactory.json#/definitions/DatasetReference" - }, - "linkedService": { - "description": "Linked service reference.", - "$ref": "../datafactory.json#/definitions/LinkedServiceReference" } } }, @@ -131,10 +127,6 @@ "dataset": { "description": "Dataset reference.", "$ref": "../datafactory.json#/definitions/DatasetReference" - }, - "linkedService": { - "description": "Linked service reference.", - "$ref": "../datafactory.json#/definitions/LinkedServiceReference" } } } From 5597c60e9caf54dd9214173ebdde43690df49548 Mon Sep 17 00:00:00 2001 From: zhanyu2014 Date: Thu, 22 Apr 2021 11:54:24 +0800 Subject: [PATCH 4/4] Support sheet index in excel --- .../stable/2018-06-01/entityTypes/Dataset.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json index edf05e372b2e..8e94ced10fe3 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json @@ -695,7 +695,11 @@ }, "sheetName": { "type": "object", - "description": "The sheet of excel file. Type: string (or Expression with resultType string)." + "description": "The sheet name of excel file. Type: string (or Expression with resultType string)." + }, + "sheetIndex": { + "type": "object", + "description": "The sheet index of excel file and default value is 0. Type: integer (or Expression with resultType integer)" }, "range": { "type": "object", @@ -715,8 +719,7 @@ } }, "required": [ - "location", - "sheetName" + "location" ] }, "ParquetDataset": {