forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating the Datafactory SDK from swagger repo, preparing release (Az…
…ure#6971) * Updating the Datafactory SDK from swagger repo, preparing release * Update ExecuteSsisPackageActivity unittest * Add Binary Dataset and Copy Source/Sink Test * add test for teradata * Updated notes with 3 missing types * Add tests for Azure SQL Database Managed Instance, Salesforce Service Cloud, Dynamics CRM, Common Data Service for Apps, Informix and Microsoft Access
- Loading branch information
1 parent
2bc2990
commit 0795580
Showing
47 changed files
with
4,079 additions
and
19 deletions.
There are no files selected for viewing
142 changes: 142 additions & 0 deletions
142
...ry/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
// <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> | ||
/// Azure SQL Managed Instance linked service. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonObject("AzureSqlMI")] | ||
[Rest.Serialization.JsonTransformation] | ||
public partial class AzureSqlMILinkedService : LinkedService | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the AzureSqlMILinkedService class. | ||
/// </summary> | ||
public AzureSqlMILinkedService() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the AzureSqlMILinkedService class. | ||
/// </summary> | ||
/// <param name="connectionString">The connection string. Type: string, | ||
/// SecureString or AzureKeyVaultSecretReference.</param> | ||
/// <param name="additionalProperties">Unmatched properties from the | ||
/// message are deserialized this collection</param> | ||
/// <param name="connectVia">The integration runtime reference.</param> | ||
/// <param name="description">Linked service description.</param> | ||
/// <param name="parameters">Parameters for linked service.</param> | ||
/// <param name="annotations">List of tags that can be used for | ||
/// describing the linked service.</param> | ||
/// <param name="password">The Azure key vault secret reference of | ||
/// password in connection string.</param> | ||
/// <param name="servicePrincipalId">The ID of the service principal | ||
/// used to authenticate against Azure SQL Managed Instance. Type: | ||
/// string (or Expression with resultType string).</param> | ||
/// <param name="servicePrincipalKey">The key of the service principal | ||
/// used to authenticate against Azure SQL Managed Instance.</param> | ||
/// <param name="tenant">The name or ID of the tenant to which the | ||
/// service principal belongs. 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 AzureSqlMILinkedService(object connectionString, 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>), AzureKeyVaultSecretReference password = default(AzureKeyVaultSecretReference), object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), object tenant = default(object), object encryptedCredential = default(object)) | ||
: base(additionalProperties, connectVia, description, parameters, annotations) | ||
{ | ||
ConnectionString = connectionString; | ||
Password = password; | ||
ServicePrincipalId = servicePrincipalId; | ||
ServicePrincipalKey = servicePrincipalKey; | ||
Tenant = tenant; | ||
EncryptedCredential = encryptedCredential; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the connection string. Type: string, SecureString or | ||
/// AzureKeyVaultSecretReference. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.connectionString")] | ||
public object ConnectionString { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Azure key vault secret reference of password in | ||
/// connection string. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.password")] | ||
public AzureKeyVaultSecretReference Password { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the ID of the service principal used to authenticate | ||
/// against Azure SQL Managed Instance. Type: string (or Expression | ||
/// with resultType string). | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] | ||
public object ServicePrincipalId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the key of the service principal used to authenticate | ||
/// against Azure SQL Managed Instance. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] | ||
public SecretBase ServicePrincipalKey { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the name or ID of the tenant to which the service | ||
/// principal belongs. Type: string (or Expression with resultType | ||
/// string). | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.tenant")] | ||
public object Tenant { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the encrypted credential used for authentication. | ||
/// Credentials are encrypted using the integration runtime credential | ||
/// manager. Type: string (or Expression with resultType string). | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.encryptedCredential")] | ||
public object EncryptedCredential { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public override void Validate() | ||
{ | ||
base.Validate(); | ||
if (ConnectionString == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); | ||
} | ||
if (Password != null) | ||
{ | ||
Password.Validate(); | ||
} | ||
} | ||
} | ||
} |
108 changes: 108 additions & 0 deletions
108
...ory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
// <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> | ||
/// The Azure SQL Managed Instance dataset. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonObject("AzureSqlMITable")] | ||
[Rest.Serialization.JsonTransformation] | ||
public partial class AzureSqlMITableDataset : Dataset | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the AzureSqlMITableDataset class. | ||
/// </summary> | ||
public AzureSqlMITableDataset() | ||
{ | ||
LinkedServiceName = new LinkedServiceReference(); | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the AzureSqlMITableDataset class. | ||
/// </summary> | ||
/// <param name="linkedServiceName">Linked service reference.</param> | ||
/// <param name="additionalProperties">Unmatched properties from the | ||
/// message are deserialized this collection</param> | ||
/// <param name="description">Dataset description.</param> | ||
/// <param name="structure">Columns that define the structure of the | ||
/// dataset. Type: array (or Expression with resultType array), | ||
/// itemType: DatasetDataElement.</param> | ||
/// <param name="schema">Columns that define the physical type schema | ||
/// of the dataset. Type: array (or Expression with resultType array), | ||
/// itemType: DatasetSchemaDataElement.</param> | ||
/// <param name="parameters">Parameters for dataset.</param> | ||
/// <param name="annotations">List of tags that can be used for | ||
/// describing the Dataset.</param> | ||
/// <param name="folder">The folder that this Dataset is in. If not | ||
/// specified, Dataset will appear at the root level.</param> | ||
/// <param name="tableName">This property will be retired. Please | ||
/// consider using schema + table properties instead.</param> | ||
/// <param name="azureSqlMITableDatasetSchema">The schema name of the | ||
/// Azure SQL Managed Instance. Type: string (or Expression with | ||
/// resultType string).</param> | ||
/// <param name="table">The table name of the Azure SQL Managed | ||
/// Instance dataset. Type: string (or Expression with resultType | ||
/// string).</param> | ||
public AzureSqlMITableDataset(LinkedServiceReference linkedServiceName, IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string description = default(string), object structure = default(object), object schema = default(object), IDictionary<string, ParameterSpecification> parameters = default(IDictionary<string, ParameterSpecification>), IList<object> annotations = default(IList<object>), DatasetFolder folder = default(DatasetFolder), object tableName = default(object), object azureSqlMITableDatasetSchema = default(object), object table = default(object)) | ||
: base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) | ||
{ | ||
TableName = tableName; | ||
AzureSqlMITableDatasetSchema = azureSqlMITableDatasetSchema; | ||
Table = table; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets this property will be retired. Please consider using | ||
/// schema + table properties instead. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.tableName")] | ||
public object TableName { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the schema name of the Azure SQL Managed Instance. | ||
/// Type: string (or Expression with resultType string). | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.schema")] | ||
public object AzureSqlMITableDatasetSchema { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the table name of the Azure SQL Managed Instance | ||
/// dataset. Type: string (or Expression with resultType string). | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.table")] | ||
public object Table { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public override void Validate() | ||
{ | ||
base.Validate(); | ||
} | ||
} | ||
} |
102 changes: 102 additions & 0 deletions
102
sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinaryDataset.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
// <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> | ||
/// Binary dataset. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonObject("Binary")] | ||
[Rest.Serialization.JsonTransformation] | ||
public partial class BinaryDataset : Dataset | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the BinaryDataset class. | ||
/// </summary> | ||
public BinaryDataset() | ||
{ | ||
LinkedServiceName = new LinkedServiceReference(); | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the BinaryDataset class. | ||
/// </summary> | ||
/// <param name="linkedServiceName">Linked service reference.</param> | ||
/// <param name="location">The location of the Binary storage.</param> | ||
/// <param name="additionalProperties">Unmatched properties from the | ||
/// message are deserialized this collection</param> | ||
/// <param name="description">Dataset description.</param> | ||
/// <param name="structure">Columns that define the structure of the | ||
/// dataset. Type: array (or Expression with resultType array), | ||
/// itemType: DatasetDataElement.</param> | ||
/// <param name="schema">Columns that define the physical type schema | ||
/// of the dataset. Type: array (or Expression with resultType array), | ||
/// itemType: DatasetSchemaDataElement.</param> | ||
/// <param name="parameters">Parameters for dataset.</param> | ||
/// <param name="annotations">List of tags that can be used for | ||
/// describing the Dataset.</param> | ||
/// <param name="folder">The folder that this Dataset is in. If not | ||
/// specified, Dataset will appear at the root level.</param> | ||
/// <param name="compression">The data compression method used for the | ||
/// binary dataset.</param> | ||
public BinaryDataset(LinkedServiceReference linkedServiceName, DatasetLocation location, IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string description = default(string), object structure = default(object), object schema = default(object), IDictionary<string, ParameterSpecification> parameters = default(IDictionary<string, ParameterSpecification>), IList<object> annotations = default(IList<object>), DatasetFolder folder = default(DatasetFolder), DatasetCompression compression = default(DatasetCompression)) | ||
: base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) | ||
{ | ||
Location = location; | ||
Compression = compression; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the location of the Binary storage. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.location")] | ||
public DatasetLocation Location { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the data compression method used for the binary | ||
/// dataset. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.compression")] | ||
public DatasetCompression Compression { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public override void Validate() | ||
{ | ||
base.Validate(); | ||
if (Location == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "Location"); | ||
} | ||
if (Location != null) | ||
{ | ||
Location.Validate(); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.