Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ComponentSetup()
/// component.</param>
/// <param name="licenseKey">The license key to activate the
/// component.</param>
public ComponentSetup(string componentName, SecretBase licenseKey)
public ComponentSetup(string componentName, SecretBase licenseKey = default(SecretBase))
{
ComponentName = componentName;
LicenseKey = licenseKey;
Expand Down Expand Up @@ -72,10 +72,6 @@ public virtual void Validate()
{
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
Expand Up @@ -51,18 +51,26 @@ public Db2LinkedService()
/// <param name="username">Username for authentication. Type: string
/// (or Expression with resultType string).</param>
/// <param name="password">Password for authentication.</param>
/// <param name="packageCollection">Under where packages are created
/// when querying database. Type: string (or Expression with resultType
/// string).</param>
/// <param name="certificateCommonName">Certificate Common Name when
/// TLS is enabled. Type: string (or Expression with resultType
/// string).</param>
/// <param name="encryptedCredential">The encrypted credential used for
/// authentication. Credentials are encrypted using the integration
/// runtime credential manager. Type: string (or Expression with
/// resultType string).</param>
public Db2LinkedService(object server, object database, IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary<string, ParameterSpecification> parameters = default(IDictionary<string, ParameterSpecification>), IList<object> annotations = default(IList<object>), string authenticationType = default(string), object username = default(object), SecretBase password = default(SecretBase), object encryptedCredential = default(object))
public Db2LinkedService(object server, object database, IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary<string, ParameterSpecification> parameters = default(IDictionary<string, ParameterSpecification>), IList<object> annotations = default(IList<object>), string authenticationType = default(string), object username = default(object), SecretBase password = default(SecretBase), object packageCollection = default(object), object certificateCommonName = default(object), object encryptedCredential = default(object))
: base(additionalProperties, connectVia, description, parameters, annotations)
{
Server = server;
Database = database;
AuthenticationType = authenticationType;
Username = username;
Password = password;
PackageCollection = packageCollection;
CertificateCommonName = certificateCommonName;
EncryptedCredential = encryptedCredential;
CustomInit();
}
Expand Down Expand Up @@ -106,6 +114,20 @@ public Db2LinkedService()
[JsonProperty(PropertyName = "typeProperties.password")]
public SecretBase Password { get; set; }

/// <summary>
/// Gets or sets under where packages are created when querying
/// database. Type: string (or Expression with resultType string).
/// </summary>
[JsonProperty(PropertyName = "typeProperties.packageCollection")]
public object PackageCollection { get; set; }

/// <summary>
/// Gets or sets certificate Common Name when TLS is enabled. Type:
/// string (or Expression with resultType string).
/// </summary>
[JsonProperty(PropertyName = "typeProperties.certificateCommonName")]
public object CertificateCommonName { get; set; }

/// <summary>
/// Gets or sets the encrypted credential used for authentication.
/// Credentials are encrypted using the integration runtime credential
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public SSISAccessCredential()
/// <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)
public SSISAccessCredential(object domain, object userName, SecretBase password)
{
Domain = domain;
UserName = userName;
Expand Down Expand Up @@ -62,7 +62,7 @@ public SSISAccessCredential(object domain, object userName, SecureString passwor
/// Gets or sets password for windows authentication.
/// </summary>
[JsonProperty(PropertyName = "password")]
public SecureString Password { get; set; }
public SecretBase Password { get; set; }

/// <summary>
/// Validate the object.
Expand All @@ -84,10 +84,6 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "Password");
}
if (Password != null)
{
Password.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
// <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 embedded child package.
/// </summary>
public partial class SSISChildPackage
{
/// <summary>
/// Initializes a new instance of the SSISChildPackage class.
/// </summary>
public SSISChildPackage()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the SSISChildPackage class.
/// </summary>
/// <param name="packagePath">Path for embedded child package. Type:
/// string (or Expression with resultType string).</param>
/// <param name="packageContent">Content for embedded child package.
/// Type: string (or Expression with resultType string).</param>
/// <param name="packageName">Name for embedded child package.</param>
/// <param name="packageLastModifiedDate">Last modified date for
/// embedded child package.</param>
public SSISChildPackage(object packagePath, object packageContent, string packageName = default(string), string packageLastModifiedDate = default(string))
{
PackagePath = packagePath;
PackageName = packageName;
PackageContent = packageContent;
PackageLastModifiedDate = packageLastModifiedDate;
CustomInit();
}

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

/// <summary>
/// Gets or sets path for embedded child package. Type: string (or
/// Expression with resultType string).
/// </summary>
[JsonProperty(PropertyName = "packagePath")]
public object PackagePath { get; set; }

/// <summary>
/// Gets or sets name for embedded child package.
/// </summary>
[JsonProperty(PropertyName = "packageName")]
public string PackageName { get; set; }

/// <summary>
/// Gets or sets content for embedded child package. Type: string (or
/// Expression with resultType string).
/// </summary>
[JsonProperty(PropertyName = "packageContent")]
public object PackageContent { get; set; }

/// <summary>
/// Gets or sets last modified date for embedded child package.
/// </summary>
[JsonProperty(PropertyName = "packageLastModifiedDate")]
public string PackageLastModifiedDate { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (PackagePath == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "PackagePath");
}
if (PackageContent == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "PackageContent");
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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>
Expand All @@ -35,20 +37,31 @@ public SSISPackageLocation()
/// <param name="packagePath">The SSIS package path. Type: string (or
/// Expression with resultType string).</param>
/// <param name="type">The type of SSIS package location. Possible
/// values include: 'SSISDB', 'File'</param>
/// values include: 'SSISDB', 'File', 'InlinePackage'</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))
/// <param name="packageName">The package name.</param>
/// <param name="packageContent">The embedded package content. Type:
/// string (or Expression with resultType string).</param>
/// <param name="packageLastModifiedDate">The embedded package last
/// modified date.</param>
/// <param name="childPackages">The embedded child package
/// list.</param>
public SSISPackageLocation(object packagePath = default(object), string type = default(string), SecretBase packagePassword = default(SecretBase), SSISAccessCredential accessCredential = default(SSISAccessCredential), object configurationPath = default(object), string packageName = default(string), object packageContent = default(object), string packageLastModifiedDate = default(string), IList<SSISChildPackage> childPackages = default(IList<SSISChildPackage>))
{
PackagePath = packagePath;
Type = type;
PackagePassword = packagePassword;
AccessCredential = accessCredential;
ConfigurationPath = configurationPath;
PackageName = packageName;
PackageContent = packageContent;
PackageLastModifiedDate = packageLastModifiedDate;
ChildPackages = childPackages;
CustomInit();
}

Expand All @@ -66,7 +79,7 @@ public SSISPackageLocation()

/// <summary>
/// Gets or sets the type of SSIS package location. Possible values
/// include: 'SSISDB', 'File'
/// include: 'SSISDB', 'File', 'InlinePackage'
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
Expand All @@ -75,7 +88,7 @@ public SSISPackageLocation()
/// Gets or sets password of the package.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.packagePassword")]
public SecureString PackagePassword { get; set; }
public SecretBase PackagePassword { get; set; }

/// <summary>
/// Gets or sets the package access credential.
Expand All @@ -90,6 +103,31 @@ public SSISPackageLocation()
[JsonProperty(PropertyName = "typeProperties.configurationPath")]
public object ConfigurationPath { get; set; }

/// <summary>
/// Gets or sets the package name.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.packageName")]
public string PackageName { get; set; }

/// <summary>
/// Gets or sets the embedded package content. Type: string (or
/// Expression with resultType string).
/// </summary>
[JsonProperty(PropertyName = "typeProperties.packageContent")]
public object PackageContent { get; set; }

/// <summary>
/// Gets or sets the embedded package last modified date.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.packageLastModifiedDate")]
public string PackageLastModifiedDate { get; set; }

/// <summary>
/// Gets or sets the embedded child package list.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.childPackages")]
public IList<SSISChildPackage> ChildPackages { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand All @@ -98,18 +136,20 @@ public SSISPackageLocation()
/// </exception>
public virtual void Validate()
{
if (PackagePath == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "PackagePath");
}
if (PackagePassword != null)
{
PackagePassword.Validate();
}
if (AccessCredential != null)
{
AccessCredential.Validate();
}
if (ChildPackages != null)
{
foreach (var element in ChildPackages)
{
if (element != null)
{
element.Validate();
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ public static class SsisPackageLocationType
{
public const string SSISDB = "SSISDB";
public const string File = "File";
public const string InlinePackage = "InlinePackage";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public WebActivity()
/// endpoint.</param>
/// <param name="linkedServices">List of linked services passed to web
/// endpoint.</param>
public WebActivity(string name, string method, object url, 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 headers = default(object), object body = default(object), WebActivityAuthentication authentication = default(WebActivityAuthentication), IList<DatasetReference> datasets = default(IList<DatasetReference>), IList<LinkedServiceReference> linkedServices = default(IList<LinkedServiceReference>))
/// <param name="connectVia">The integration runtime reference.</param>
public WebActivity(string name, string method, object url, 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 headers = default(object), object body = default(object), WebActivityAuthentication authentication = default(WebActivityAuthentication), IList<DatasetReference> datasets = default(IList<DatasetReference>), IList<LinkedServiceReference> linkedServices = default(IList<LinkedServiceReference>), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference))
: base(name, additionalProperties, description, dependsOn, userProperties, linkedServiceName, policy)
{
Method = method;
Expand All @@ -70,6 +71,7 @@ public WebActivity()
Authentication = authentication;
Datasets = datasets;
LinkedServices = linkedServices;
ConnectVia = connectVia;
CustomInit();
}

Expand Down Expand Up @@ -128,6 +130,12 @@ public WebActivity()
[JsonProperty(PropertyName = "typeProperties.linkedServices")]
public IList<LinkedServiceReference> LinkedServices { get; set; }

/// <summary>
/// Gets or sets the integration runtime reference.
/// </summary>
[JsonProperty(PropertyName = "typeProperties.connectVia")]
public IntegrationRuntimeReference ConnectVia { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down Expand Up @@ -169,6 +177,10 @@ public override void Validate()
}
}
}
if (ConnectVia != null)
{
ConnectVia.Validate();
}
}
}
}
Loading