Skip to content

Commit 1a86c97

Browse files
[Datafactory] Enable Excel SDK (#12282)
* Enable Excel SDK * update Co-authored-by: zhanyu2014 <zhanyu@microsoft.com>
1 parent 1fe9b58 commit 1a86c97

File tree

7 files changed

+315
-5
lines changed

7 files changed

+315
-5
lines changed

eng/mgmt/mgmtmetadata/datafactory_resource-manager.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ AutoRest installed successfully.
33
Commencing code generation
44
Generating CSharp code
55
Executing AutoRest command
6-
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=D:\Source\Repos\azure-sdk-for-net\sdk
7-
2020-05-12 09:50:10 UTC
6+
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=D:\Git\AdmsSdkChange\sdk
7+
2020-05-26 06:33:38 UTC
88
Azure-rest-api-specs repository information
99
GitHub fork: Azure
1010
Branch: master
11-
Commit: 260aa3d5e9467700068787493861f92fc590800c
11+
Commit: 98f100daf12446cbdc6359ba9b34e8a10f8410f3
1212
AutoRest information
1313
Requested version: v2
1414
Bootstrapper version: autorest@2.0.4413

sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog for the Azure Data Factory V2 .NET SDK
22

3+
## Version 4.11.0
4+
### Feature Additions
5+
- Added support for the follwoing new datasets in ADF - ExcelDataset, along with source and sink for Copy activity
6+
- ExcelDataset will support following locations AzureBlobStorageLocation, AzureBlobFSLocation, AzureDataLakeStoreLocation, AmazonS3Location, FileServerLocation, FtpServerLocation, SftpLocation, HttpServerLocation, HdfsLocation
7+
38
## Version 4.10.0
49
### Feature Additions
510
- Added new type conversion support in Copy activity

sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExcelDataset.cs

Lines changed: 145 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExcelSource.cs

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/datafactory/Microsoft.Azure.Management.DataFactory/tests/JsonSamples/DatasetJsonSamples.cs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,43 @@ public class DatasetJsonSamples : JsonSampleCollection<DatasetJsonSamples>
10281028
}
10291029
}
10301030
}";
1031+
[JsonSample]
1032+
public const string ExcelDataset = @"
1033+
{
1034+
""name"": ""ExcelDataset"",
1035+
""properties"": {
1036+
""type"": ""Excel"",
1037+
""typeProperties"": {
1038+
""location"": {
1039+
""type"": ""AzureBlobStorageLocation"",
1040+
""container"": ""exceltest"",
1041+
""fileName"": ""releases-1.xlsx""
1042+
},
1043+
""compression"": {
1044+
""type"": ""GZip"",
1045+
""level"": ""Fastest""
1046+
},
1047+
""sheetName"": ""test01"",
1048+
""firstRowAsHeader"": true,
1049+
""range"": ""A4:H9"",
1050+
""nullValue"": ""N/A""
1051+
},
1052+
""linkedServiceName"": {
1053+
""referenceName"": ""MyLinkedService"",
1054+
""type"": ""LinkedServiceReference""
1055+
},
1056+
""schema"": [
1057+
{
1058+
""name"": ""title"",
1059+
""type"": ""string""
1060+
},
1061+
{
1062+
""name"": ""movieId"",
1063+
""type"": ""string""
1064+
}
1065+
]
1066+
}
1067+
}";
10311068

10321069
[JsonSample]
10331070
public const string ParquetDataset = @"

sdk/datafactory/Microsoft.Azure.Management.DataFactory/tests/JsonSamples/PipelineJsonSamples.cs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4181,6 +4181,53 @@ public class PipelineJsonSamples : JsonSampleCollection<PipelineJsonSamples>
41814181
}
41824182
}";
41834183

4184+
[JsonSample]
4185+
public const string CopyActivity_Excel_Adls = @"{
4186+
""properties"": {
4187+
""activities"": [
4188+
{
4189+
""type"": ""Copy"",
4190+
""typeProperties"": {
4191+
""source"": {
4192+
""type"": ""ExcelSource"",
4193+
""storeSettings"": {
4194+
""type"": ""AzureDataLakeStoreReadSettings"",
4195+
""recursive"": true,
4196+
""enablePartitionDiscovery"": true
4197+
}
4198+
},
4199+
""sink"": {
4200+
""type"": ""AvroSink"",
4201+
""storeSettings"": {
4202+
""type"": ""AzureDataLakeStoreWriteSettings"",
4203+
""maxConcurrentConnections"": 3,
4204+
""copyBehavior"": ""PreserveHierarchy""
4205+
},
4206+
""formatSettings"": {
4207+
""type"": ""AvroWriteSettings"",
4208+
""recordName"": ""testavro"",
4209+
""recordNamespace"": ""microsoft.datatransfer.test""
4210+
}
4211+
}
4212+
},
4213+
""inputs"": [
4214+
{
4215+
""referenceName"": ""exampleDataset"",
4216+
""type"": ""DatasetReference""
4217+
}
4218+
],
4219+
""outputs"": [
4220+
{
4221+
""referenceName"": ""exampleDataset"",
4222+
""type"": ""DatasetReference""
4223+
}
4224+
],
4225+
""name"": ""ExampleCopyActivity""
4226+
}
4227+
]
4228+
}
4229+
}";
4230+
41844231
[JsonSample]
41854232
public const string CopyActivity_Orc_Adls = @"{
41864233
""properties"": {

0 commit comments

Comments
 (0)