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

[DataFactory] Add alternateKeyName property to Dynamics Sink #7572

Merged
merged 3 commits into from
Sep 12, 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
6 changes: 3 additions & 3 deletions eng/mgmt/mgmtmetadata/datafactory_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=D:\dzy\azure-sdk-for-net\sdk
2019-09-06 11:26:35 UTC
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=C:\Users\zhenqxu\Source\Repos\azure-sdk-for-net\sdk
2019-09-11 09:24:33 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: b92dda5961d95de9c7beeb1df008b43a57b4a29b
Commit: 49a38e6bc534fec5b09a245568c8f66e9d3acb2c
AutoRest information
Requested version: latest
Bootstrapper version: [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ public CommonDataServiceForAppsSink()
/// ignore null values from input dataset (except key fields) during
/// write operation. Default is false. Type: boolean (or Expression
/// with resultType boolean).</param>
public CommonDataServiceForAppsSink(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object))
/// <param name="alternateKeyName">The logical name of the alternate
/// key which will be used when upserting records. Type: string (or
/// Expression with resultType string).</param>
public CommonDataServiceForAppsSink(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object), object alternateKeyName = default(object))
: base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections)
{
IgnoreNullValues = ignoreNullValues;
AlternateKeyName = alternateKeyName;
CustomInit();
}
/// <summary>
Expand All @@ -79,6 +83,14 @@ static CommonDataServiceForAppsSink()
[JsonProperty(PropertyName = "ignoreNullValues")]
public object IgnoreNullValues { get; set; }

/// <summary>
/// Gets or sets the logical name of the alternate key which will be
/// used when upserting records. Type: string (or Expression with
/// resultType string).
/// </summary>
[JsonProperty(PropertyName = "alternateKeyName")]
public object AlternateKeyName { get; set; }

/// <summary>
/// The write behavior for the operation.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ public DynamicsCrmSink()
/// ignore null values from input dataset (except key fields) during
/// write operation. Default is false. Type: boolean (or Expression
/// with resultType boolean).</param>
public DynamicsCrmSink(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object))
/// <param name="alternateKeyName">The logical name of the alternate
/// key which will be used when upserting records. Type: string (or
/// Expression with resultType string).</param>
public DynamicsCrmSink(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object), object alternateKeyName = default(object))
: base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections)
{
IgnoreNullValues = ignoreNullValues;
AlternateKeyName = alternateKeyName;
CustomInit();
}
/// <summary>
Expand All @@ -77,6 +81,14 @@ static DynamicsCrmSink()
[JsonProperty(PropertyName = "ignoreNullValues")]
public object IgnoreNullValues { get; set; }

/// <summary>
/// Gets or sets the logical name of the alternate key which will be
/// used when upserting records. Type: string (or Expression with
/// resultType string).
/// </summary>
[JsonProperty(PropertyName = "alternateKeyName")]
public object AlternateKeyName { get; set; }

/// <summary>
/// The write behavior for the operation.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ public DynamicsSink()
/// null values from input dataset (except key fields) during write
/// operation. Default is false. Type: boolean (or Expression with
/// resultType boolean).</param>
public DynamicsSink(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object))
/// <param name="alternateKeyName">The logical name of the alternate
/// key which will be used when upserting records. Type: string (or
/// Expression with resultType string).</param>
public DynamicsSink(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object), object alternateKeyName = default(object))
: base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections)
{
IgnoreNullValues = ignoreNullValues;
AlternateKeyName = alternateKeyName;
CustomInit();
}
/// <summary>
Expand All @@ -77,6 +81,14 @@ static DynamicsSink()
[JsonProperty(PropertyName = "ignoreNullValues")]
public object IgnoreNullValues { get; set; }

/// <summary>
/// Gets or sets the logical name of the alternate key which will be
/// used when upserting records. Type: string (or Expression with
/// resultType string).
/// </summary>
[JsonProperty(PropertyName = "alternateKeyName")]
public object AlternateKeyName { get; set; }

/// <summary>
/// The write behavior for the operation.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_DataFactoryMana
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "[email protected]";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=D:\\dzy\\azure-sdk-for-net\\sdk";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=C:\\Users\\zhenqxu\\Source\\Repos\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "b92dda5961d95de9c7beeb1df008b43a57b4a29b";
public static readonly String GithubCommidId = "49a38e6bc534fec5b09a245568c8f66e9d3acb2c";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
<Version>4.1.4</Version>
<AssemblyName>Microsoft.Azure.Management.DataFactory</AssemblyName>
<PackageTags>Microsoft Azure resource management;Data Factory;ADF;</PackageTags>
<PackageReleaseNotes><![CDATA[
<PackageReleaseNotes>
<![CDATA[
- Added outputColumns property to Office365Source
- Added support for ORC dataset in ADF
- Added alternateKeyName property to DynamicsSink, DynamicsCrmSink and CommonDataServiceForAppsSinkCommonDataServiceForAppsSink
]]></PackageReleaseNotes>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
### Feature Additions
- Added outputColumns property to Office365Source
- Added support for ORC dataset in ADF
- Added alternateKeyName property to DynamicsSink, DynamicsCrmSink and CommonDataServiceForAppsSinkCommonDataServiceForAppsSink

## Version 4.1.2
### Feature Additions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,8 @@ public class PipelineJsonSamples : JsonSampleCollection<PipelineJsonSamples>
sink: {
type: ""DynamicsSink"",
writeBehavior: ""Upsert"",
ignoreNullValues: false
ignoreNullValues: false,
alternateKeyName: ""keyName""
}
}
}
Expand Down Expand Up @@ -4564,7 +4565,8 @@ public class PipelineJsonSamples : JsonSampleCollection<PipelineJsonSamples>
""type"": ""DynamicsCrmSink"",
""writeBehavior"": ""Upsert"",
""writeBatchSize"": 5000,
""ignoreNullValues"": true
""ignoreNullValues"": true,
""alternateKeyName"": ""keyName""
}
},
""inputs"": [
Expand Down Expand Up @@ -4599,7 +4601,8 @@ public class PipelineJsonSamples : JsonSampleCollection<PipelineJsonSamples>
""type"": ""CommonDataServiceForAppsSink"",
""writeBehavior"": ""Upsert"",
""writeBatchSize"": 5000,
""ignoreNullValues"": true
""ignoreNullValues"": true,
""alternateKeyName"": ""keyName""
}
},
""inputs"": [
Expand Down