Skip to content

Commit

Permalink
.NET SDK Resource Provider:'DataFactory'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5588'
REST Spec PR Author 'HaoQian-MS'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 9, 2019
1 parent 21fa993 commit d5e28c6
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public ExecuteSSISPackageActivity()
/// connection managers to execute the SSIS package.</param>
/// <param name="propertyOverrides">The property overrides to execute
/// the SSIS package.</param>
public ExecuteSSISPackageActivity(string name, SSISPackageLocation packageLocation, IntegrationRuntimeReference connectVia, IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string description = default(string), IList<ActivityDependency> dependsOn = default(IList<ActivityDependency>), IList<UserProperty> userProperties = default(IList<UserProperty>), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), object runtime = default(object), object loggingLevel = default(object), object environmentPath = default(object), SSISExecutionCredential executionCredential = default(SSISExecutionCredential), IDictionary<string, SSISExecutionParameter> projectParameters = default(IDictionary<string, SSISExecutionParameter>), IDictionary<string, SSISExecutionParameter> packageParameters = default(IDictionary<string, SSISExecutionParameter>), IDictionary<string, IDictionary<string, SSISExecutionParameter>> projectConnectionManagers = default(IDictionary<string, IDictionary<string, SSISExecutionParameter>>), IDictionary<string, IDictionary<string, SSISExecutionParameter>> packageConnectionManagers = default(IDictionary<string, IDictionary<string, SSISExecutionParameter>>), IDictionary<string, SSISPropertyOverride> propertyOverrides = default(IDictionary<string, SSISPropertyOverride>))
/// <param name="logLocation">SSIS package exection log
/// location.</param>
public ExecuteSSISPackageActivity(string name, SSISPackageLocation packageLocation, IntegrationRuntimeReference connectVia, IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string description = default(string), IList<ActivityDependency> dependsOn = default(IList<ActivityDependency>), IList<UserProperty> userProperties = default(IList<UserProperty>), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), object runtime = default(object), object loggingLevel = default(object), object environmentPath = default(object), SSISExecutionCredential executionCredential = default(SSISExecutionCredential), IDictionary<string, SSISExecutionParameter> projectParameters = default(IDictionary<string, SSISExecutionParameter>), IDictionary<string, SSISExecutionParameter> packageParameters = default(IDictionary<string, SSISExecutionParameter>), IDictionary<string, IDictionary<string, SSISExecutionParameter>> projectConnectionManagers = default(IDictionary<string, IDictionary<string, SSISExecutionParameter>>), IDictionary<string, IDictionary<string, SSISExecutionParameter>> packageConnectionManagers = default(IDictionary<string, IDictionary<string, SSISExecutionParameter>>), IDictionary<string, SSISPropertyOverride> propertyOverrides = default(IDictionary<string, SSISPropertyOverride>), SSISLogLocation logLocation = default(SSISLogLocation))
: base(name, additionalProperties, description, dependsOn, userProperties, linkedServiceName, policy)
{
PackageLocation = packageLocation;
Expand All @@ -81,6 +83,7 @@ public ExecuteSSISPackageActivity()
ProjectConnectionManagers = projectConnectionManagers;
PackageConnectionManagers = packageConnectionManagers;
PropertyOverrides = propertyOverrides;
LogLocation = logLocation;
CustomInit();
}

Expand Down Expand Up @@ -163,6 +166,12 @@ public ExecuteSSISPackageActivity()
[JsonProperty(PropertyName = "typeProperties.propertyOverrides")]
public IDictionary<string, SSISPropertyOverride> PropertyOverrides { get; set; }

/// <summary>
/// Gets or sets SSIS package exection log location.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.logLocation")]
public SSISLogLocation LogLocation { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down Expand Up @@ -254,6 +263,10 @@ public override void Validate()
}
}
}
if (LogLocation != null)
{
LogLocation.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
// <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 Newtonsoft.Json;
using System.Linq;

/// <summary>
/// SSIS access credential.
/// </summary>
public partial class SSISAccessCredential
{
/// <summary>
/// Initializes a new instance of the SSISAccessCredential class.
/// </summary>
public SSISAccessCredential()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the SSISAccessCredential class.
/// </summary>
/// <param name="domain">Domain for windows authentication.</param>
/// <param name="userName">UseName for windows authentication.</param>
/// <param name="password">Password for windows authentication.</param>
public SSISAccessCredential(object domain, object userName, SecureString password)
{
Domain = domain;
UserName = userName;
Password = password;
CustomInit();
}

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

/// <summary>
/// Gets or sets domain for windows authentication.
/// </summary>
[JsonProperty(PropertyName = "domain")]
public object Domain { get; set; }

/// <summary>
/// Gets or sets useName for windows authentication.
/// </summary>
[JsonProperty(PropertyName = "userName")]
public object UserName { get; set; }

/// <summary>
/// Gets or sets password for windows authentication.
/// </summary>
[JsonProperty(PropertyName = "password")]
public SecureString Password { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Domain == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Domain");
}
if (UserName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "UserName");
}
if (Password == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Password");
}
if (Password != null)
{
Password.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
// <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>
/// SSIS package exection log location
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class SSISLogLocation
{
/// <summary>
/// Initializes a new instance of the SSISLogLocation class.
/// </summary>
public SSISLogLocation()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the SSISLogLocation class.
/// </summary>
/// <param name="logPath">The SSIS package execution log path. Type:
/// string (or Expression with resultType string).</param>
/// <param name="accessCredential">The package execution log access
/// credential.</param>
public SSISLogLocation(object logPath = default(object), SSISAccessCredential accessCredential = default(SSISAccessCredential))
{
LogPath = logPath;
AccessCredential = accessCredential;
CustomInit();
}
/// <summary>
/// Static constructor for SSISLogLocation class.
/// </summary>
static SSISLogLocation()
{
Type = "File";
}

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

/// <summary>
/// Gets or sets the SSIS package execution log path. Type: string (or
/// Expression with resultType string).
/// </summary>
[JsonProperty(PropertyName = "logPath")]
public object LogPath { get; set; }

/// <summary>
/// Gets or sets the package execution log access credential.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.accessCredential")]
public SSISAccessCredential AccessCredential { get; set; }

/// <summary>
/// The type of SSIS log location.
/// </summary>
[JsonProperty(PropertyName = "type")]
public static string Type { get; private set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (AccessCredential != null)
{
AccessCredential.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
namespace Microsoft.Azure.Management.DataFactory.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// SSIS package location.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class SSISPackageLocation
{
/// <summary>
Expand All @@ -32,9 +34,21 @@ public SSISPackageLocation()
/// </summary>
/// <param name="packagePath">The SSIS package path. Type: string (or
/// Expression with resultType string).</param>
public SSISPackageLocation(object packagePath)
/// <param name="type">The type of SSIS package location. Possible
/// values include: 'SSISDB', 'File'</param>
/// <param name="packagePassword">Password of the package.</param>
/// <param name="accessCredential">The package access
/// credential.</param>
/// <param name="configurationPath">The configuration file of the
/// package execution. Type: string (or Expression with resultType
/// string).</param>
public SSISPackageLocation(object packagePath, string type = default(string), SecureString packagePassword = default(SecureString), SSISAccessCredential accessCredential = default(SSISAccessCredential), object configurationPath = default(object))
{
PackagePath = packagePath;
Type = type;
PackagePassword = packagePassword;
AccessCredential = accessCredential;
ConfigurationPath = configurationPath;
CustomInit();
}

Expand All @@ -50,6 +64,32 @@ public SSISPackageLocation(object packagePath)
[JsonProperty(PropertyName = "packagePath")]
public object PackagePath { get; set; }

/// <summary>
/// Gets or sets the type of SSIS package location. Possible values
/// include: 'SSISDB', 'File'
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }

/// <summary>
/// Gets or sets password of the package.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.packagePassword")]
public SecureString PackagePassword { get; set; }

/// <summary>
/// Gets or sets the package access credential.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.accessCredential")]
public SSISAccessCredential AccessCredential { get; set; }

/// <summary>
/// Gets or sets the configuration file of the package execution. Type:
/// string (or Expression with resultType string).
/// </summary>
[JsonProperty(PropertyName = "typeProperties.configurationPath")]
public object ConfigurationPath { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand All @@ -62,6 +102,14 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "PackagePath");
}
if (PackagePassword != null)
{
PackagePassword.Validate();
}
if (AccessCredential != null)
{
AccessCredential.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// <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
{

/// <summary>
/// Defines values for SsisPackageLocationType.
/// </summary>
public static class SsisPackageLocationType
{
public const string SSISDB = "SSISDB";
public const string File = "File";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public WebHookActivity()
/// <param name="description">Activity description.</param>
/// <param name="dependsOn">Activity depends on condition.</param>
/// <param name="userProperties">Activity user properties.</param>
/// <param name="timeout">Specifies the timeout within which the
/// webhook should be called back. If there is no value specified, it
/// defaults to 10 minutes. Type: string. Pattern:
/// <param name="timeout">The timeout within which the webhook should
/// be called back. If there is no value specified, it defaults to 10
/// minutes. Type: string. Pattern:
/// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).</param>
/// <param name="headers">Represents the headers that will be sent to
/// the request. For example, to set the language and type on a
Expand Down Expand Up @@ -88,9 +88,9 @@ static WebHookActivity()
public object Url { get; set; }

/// <summary>
/// Gets or sets specifies the timeout within which the webhook should
/// be called back. If there is no value specified, it defaults to 10
/// minutes. Type: string. Pattern:
/// Gets or sets the timeout within which the webhook should be called
/// back. If there is no value specified, it defaults to 10 minutes.
/// Type: string. Pattern:
/// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
/// </summary>
[JsonProperty(PropertyName = "typeProperties.timeout")]
Expand Down

0 comments on commit d5e28c6

Please sign in to comment.