Skip to content

Commit

Permalink
[Datafactory] Office 365 - Added outputColumns property to Office365S…
Browse files Browse the repository at this point in the history
…ource (Azure#7507)

* [Datafactory] Office 365 - Added outputColumns property to Office365Source

* Resolve review comments
  • Loading branch information
davidzhaoyue authored and JoshLove-msft committed Sep 10, 2019
1 parent 4eeca58 commit 665807e
Show file tree
Hide file tree
Showing 20 changed files with 739 additions and 23 deletions.
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=C:\azure-sdk-for-net\sdk
2019-08-22 15:02:19 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=D:\dzy\azure-sdk-for-net\sdk
2019-09-06 11:26:35 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: fb8f078deac2367f3dbcfbd8a542c77083c28a5b
Commit: b92dda5961d95de9c7beeb1df008b43a57b4a29b
AutoRest information
Requested version: latest
Bootstrapper version: [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ private void Initialize()
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<CopySink>("type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<LinkedIntegrationRuntimeType>("authorizationType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<LinkedIntegrationRuntimeType>("authorizationType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<CustomSetupBase>("type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<CustomSetupBase>("type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<SsisObjectMetadata>("type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<SsisObjectMetadata>("type"));
CustomInitialize();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.DataFactory.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
/// Trigger that allows the referenced pipeline to depend on other pipeline
/// runs based on runDimension Name/Value pairs. Upstream pipelines should
/// declare the same runDimension Name and their runs should have the
/// values for those runDimensions. The referenced pipeline run would be
/// triggered if the values for the runDimension match for all upstream
/// pipeline runs.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class ChainingTrigger : Trigger
{
/// <summary>
/// Initializes a new instance of the ChainingTrigger class.
/// </summary>
public ChainingTrigger()
{
Pipeline = new TriggerPipelineReference();
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ChainingTrigger class.
/// </summary>
/// <param name="pipeline">Pipeline for which runs are created when all
/// upstream pipelines complete successfully.</param>
/// <param name="dependsOn">Upstream Pipelines.</param>
/// <param name="runDimension">Run Dimension property that needs to be
/// emitted by upstream pipelines.</param>
/// <param name="additionalProperties">Unmatched properties from the
/// message are deserialized this collection</param>
/// <param name="description">Trigger description.</param>
/// <param name="runtimeState">Indicates if trigger is running or not.
/// Updated when Start/Stop APIs are called on the Trigger. Possible
/// values include: 'Started', 'Stopped', 'Disabled'</param>
/// <param name="annotations">List of tags that can be used for
/// describing the trigger.</param>
public ChainingTrigger(TriggerPipelineReference pipeline, IList<PipelineReference> dependsOn, string runDimension, IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string description = default(string), string runtimeState = default(string), IList<object> annotations = default(IList<object>))
: base(additionalProperties, description, runtimeState, annotations)
{
Pipeline = pipeline;
DependsOn = dependsOn;
RunDimension = runDimension;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets pipeline for which runs are created when all upstream
/// pipelines complete successfully.
/// </summary>
[JsonProperty(PropertyName = "pipeline")]
public TriggerPipelineReference Pipeline { get; set; }

/// <summary>
/// Gets or sets upstream Pipelines.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.dependsOn")]
public IList<PipelineReference> DependsOn { get; set; }

/// <summary>
/// Gets or sets run Dimension property that needs to be emitted by
/// upstream pipelines.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.runDimension")]
public string RunDimension { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Pipeline == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Pipeline");
}
if (DependsOn == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "DependsOn");
}
if (RunDimension == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "RunDimension");
}
if (Pipeline != null)
{
Pipeline.Validate();
}
if (DependsOn != null)
{
foreach (var element in DependsOn)
{
if (element != null)
{
element.Validate();
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.DataFactory.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The custom setup of running cmdkey commands.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class CmdkeySetup : CustomSetupBase
{
/// <summary>
/// Initializes a new instance of the CmdkeySetup class.
/// </summary>
public CmdkeySetup()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the CmdkeySetup class.
/// </summary>
/// <param name="targetName">The server name of data source
/// access.</param>
/// <param name="userName">The user name of data source access.</param>
/// <param name="password">The password of data source access.</param>
public CmdkeySetup(object targetName, object userName, SecretBase password)
{
TargetName = targetName;
UserName = userName;
Password = password;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the server name of data source access.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.targetName")]
public object TargetName { get; set; }

/// <summary>
/// Gets or sets the user name of data source access.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.userName")]
public object UserName { get; set; }

/// <summary>
/// Gets or sets the password of data source access.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.password")]
public SecretBase Password { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (TargetName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "TargetName");
}
if (UserName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "UserName");
}
if (Password == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Password");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.DataFactory.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The custom setup of installing 3rd party components.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class ComponentSetup : CustomSetupBase
{
/// <summary>
/// Initializes a new instance of the ComponentSetup class.
/// </summary>
public ComponentSetup()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ComponentSetup class.
/// </summary>
/// <param name="componentName">The name of the 3rd party
/// component.</param>
/// <param name="licenseKey">The license key to activate the
/// component.</param>
public ComponentSetup(string componentName, SecretBase licenseKey)
{
ComponentName = componentName;
LicenseKey = licenseKey;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the name of the 3rd party component.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.componentName")]
public string ComponentName { get; set; }

/// <summary>
/// Gets or sets the license key to activate the component.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.licenseKey")]
public SecretBase LicenseKey { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (ComponentName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "ComponentName");
}
if (LicenseKey == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "LicenseKey");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.DataFactory.Models
{
using System.Linq;

/// <summary>
/// The base definition of the custom setup.
/// </summary>
public partial class CustomSetupBase
{
/// <summary>
/// Initializes a new instance of the CustomSetupBase class.
/// </summary>
public CustomSetupBase()
{
CustomInit();
}


/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

}
}
Loading

0 comments on commit 665807e

Please sign in to comment.