From 42af34f9bef6376e0702a46546807cbd00462b32 Mon Sep 17 00:00:00 2001 From: hvermis Date: Thu, 18 Jul 2019 12:10:38 -0700 Subject: [PATCH 1/8] Updating the Datafactory SDK from swagger repo, preparing release --- .../Models/AzureSqlMILinkedService.cs | 142 ++++++++++++ .../Models/AzureSqlMITableDataset.cs | 108 ++++++++++ .../src/Generated/Models/BinaryDataset.cs | 102 +++++++++ .../src/Generated/Models/BinarySink.cs | 82 +++++++ .../src/Generated/Models/BinarySource.cs | 77 +++++++ .../CommonDataServiceForAppsEntityDataset.cs | 88 ++++++++ .../CommonDataServiceForAppsLinkedService.cs | 204 ++++++++++++++++++ .../Models/CommonDataServiceForAppsSink.cs | 89 ++++++++ .../Models/CommonDataServiceForAppsSource.cs | 71 ++++++ .../Models/DynamicsAuthenticationType.cs | 22 ++ .../Models/DynamicsCrmEntityDataset.cs | 86 ++++++++ .../Models/DynamicsCrmLinkedService.cs | 198 +++++++++++++++++ .../src/Generated/Models/DynamicsCrmSink.cs | 87 ++++++++ .../src/Generated/Models/DynamicsCrmSource.cs | 68 ++++++ .../Models/DynamicsDeploymentType.cs | 22 ++ .../Models/ExecuteSSISPackageActivity.cs | 15 +- .../Generated/Models/InformixLinkedService.cs | 138 ++++++++++++ .../src/Generated/Models/InformixSink.cs | 71 ++++++ .../src/Generated/Models/InformixSource.cs | 66 ++++++ .../Generated/Models/InformixTableDataset.cs | 86 ++++++++ .../Models/MicrosoftAccessLinkedService.cs | 140 ++++++++++++ .../Generated/Models/MicrosoftAccessSink.cs | 71 ++++++ .../Generated/Models/MicrosoftAccessSource.cs | 66 ++++++ .../Models/MicrosoftAccessTableDataset.cs | 88 ++++++++ .../Generated/Models/SSISAccessCredential.cs | 93 ++++++++ .../src/Generated/Models/SSISLogLocation.cs | 109 ++++++++++ .../SalesforceServiceCloudLinkedService.cs | 142 ++++++++++++ .../SalesforceServiceCloudObjectDataset.cs | 88 ++++++++ .../Models/SalesforceServiceCloudSink.cs | 108 ++++++++++ .../Models/SalesforceServiceCloudSource.cs | 79 +++++++ .../src/Generated/Models/SqlMISink.cs | 112 ++++++++++ .../src/Generated/Models/SqlMISource.cs | 100 +++++++++ .../Generated/Models/SsisPackageLocation.cs | 50 ++++- .../Models/SsisPackageLocationType.cs | 22 ++ .../Generated/Models/TeradataLinkedService.cs | 20 +- .../Models/TeradataPartitionOption.cs | 23 ++ .../Models/TeradataPartitionSettings.cs | 81 +++++++ .../src/Generated/Models/TeradataSource.cs | 88 ++++++++ .../Generated/Models/TeradataTableDataset.cs | 96 +++++++++ .../SdkInfo_DataFactoryManagementClient.cs | 40 ++++ ...rosoft.Azure.Management.DataFactory.csproj | 8 +- .../src/Properties/AssemblyInfo.cs | 4 +- .../src/changelog.md | 12 +- 43 files changed, 3447 insertions(+), 15 deletions(-) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinaryDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsEntityDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsAuthenticationType.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmEntityDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsDeploymentType.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixTableDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessTableDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISAccessCredential.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISLogLocation.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudObjectDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocationType.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataPartitionOption.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataPartitionSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataTableDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs new file mode 100644 index 000000000000..9c2188e31085 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs @@ -0,0 +1,142 @@ +// +// 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. +// + +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; + + /// + /// Azure SQL Managed Instance linked service. + /// + [Newtonsoft.Json.JsonObject("AzureSqlMI")] + [Rest.Serialization.JsonTransformation] + public partial class AzureSqlMILinkedService : LinkedService + { + /// + /// Initializes a new instance of the AzureSqlMILinkedService class. + /// + public AzureSqlMILinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureSqlMILinkedService class. + /// + /// The connection string. Type: string, + /// SecureString or AzureKeyVaultSecretReference. + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The Azure key vault secret reference of + /// password in connection string. + /// The ID of the service principal + /// used to authenticate against Azure SQL Managed Instance. Type: + /// string (or Expression with resultType string). + /// The key of the service principal + /// used to authenticate against Azure SQL Managed Instance. + /// The name or ID of the tenant to which the + /// service principal belongs. Type: string (or Expression with + /// resultType string). + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public AzureSqlMILinkedService(object connectionString, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), 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(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the connection string. Type: string, SecureString or + /// AzureKeyVaultSecretReference. + /// + [JsonProperty(PropertyName = "typeProperties.connectionString")] + public object ConnectionString { get; set; } + + /// + /// Gets or sets the Azure key vault secret reference of password in + /// connection string. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public AzureKeyVaultSecretReference Password { get; set; } + + /// + /// Gets or sets the ID of the service principal used to authenticate + /// against Azure SQL Managed Instance. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] + public object ServicePrincipalId { get; set; } + + /// + /// Gets or sets the key of the service principal used to authenticate + /// against Azure SQL Managed Instance. + /// + [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] + public SecretBase ServicePrincipalKey { get; set; } + + /// + /// Gets or sets the name or ID of the tenant to which the service + /// principal belongs. Type: string (or Expression with resultType + /// string). + /// + [JsonProperty(PropertyName = "typeProperties.tenant")] + public object Tenant { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (ConnectionString == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); + } + if (Password != null) + { + Password.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs new file mode 100644 index 000000000000..c98b4cf7dd9c --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs @@ -0,0 +1,108 @@ +// +// 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. +// + +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; + + /// + /// The Azure SQL Managed Instance dataset. + /// + [Newtonsoft.Json.JsonObject("AzureSqlMITable")] + [Rest.Serialization.JsonTransformation] + public partial class AzureSqlMITableDataset : Dataset + { + /// + /// Initializes a new instance of the AzureSqlMITableDataset class. + /// + public AzureSqlMITableDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureSqlMITableDataset class. + /// + /// Linked service reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// This property will be retired. Please + /// consider using schema + table properties instead. + /// The schema name of the + /// Azure SQL Managed Instance. Type: string (or Expression with + /// resultType string). + /// The table name of the Azure SQL Managed + /// Instance dataset. Type: string (or Expression with resultType + /// string). + public AzureSqlMITableDataset(LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), 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(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets this property will be retired. Please consider using + /// schema + table properties instead. + /// + [JsonProperty(PropertyName = "typeProperties.tableName")] + public object TableName { get; set; } + + /// + /// Gets or sets the schema name of the Azure SQL Managed Instance. + /// Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.schema")] + public object AzureSqlMITableDatasetSchema { get; set; } + + /// + /// Gets or sets the table name of the Azure SQL Managed Instance + /// dataset. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.table")] + public object Table { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinaryDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinaryDataset.cs new file mode 100644 index 000000000000..196ed56fcf7a --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinaryDataset.cs @@ -0,0 +1,102 @@ +// +// 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. +// + +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; + + /// + /// Binary dataset. + /// + [Newtonsoft.Json.JsonObject("Binary")] + [Rest.Serialization.JsonTransformation] + public partial class BinaryDataset : Dataset + { + /// + /// Initializes a new instance of the BinaryDataset class. + /// + public BinaryDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the BinaryDataset class. + /// + /// Linked service reference. + /// The location of the Binary storage. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The data compression method used for the + /// binary dataset. + public BinaryDataset(LinkedServiceReference linkedServiceName, DatasetLocation location, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), DatasetCompression compression = default(DatasetCompression)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + Location = location; + Compression = compression; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location of the Binary storage. + /// + [JsonProperty(PropertyName = "typeProperties.location")] + public DatasetLocation Location { get; set; } + + /// + /// Gets or sets the data compression method used for the binary + /// dataset. + /// + [JsonProperty(PropertyName = "typeProperties.compression")] + public DatasetCompression Compression { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Location != null) + { + Location.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs new file mode 100644 index 000000000000..46e9928c924c --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySink.cs @@ -0,0 +1,82 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Binary sink. + /// + public partial class BinarySink : CopySink + { + /// + /// Initializes a new instance of the BinarySink class. + /// + public BinarySink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BinarySink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// Binary store settings. + public BinarySink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), StoreReadSettings storeSettings = default(StoreReadSettings)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + StoreSettings = storeSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets binary store settings. + /// + [JsonProperty(PropertyName = "storeSettings")] + public StoreReadSettings StoreSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySource.cs new file mode 100644 index 000000000000..f93dd77321f3 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinarySource.cs @@ -0,0 +1,77 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Binary source. + /// + public partial class BinarySource : CopySource + { + /// + /// Initializes a new instance of the BinarySource class. + /// + public BinarySource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BinarySource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// Binary store settings. + public BinarySource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), StoreReadSettings storeSettings = default(StoreReadSettings)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + StoreSettings = storeSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets binary store settings. + /// + [JsonProperty(PropertyName = "storeSettings")] + public StoreReadSettings StoreSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StoreSettings != null) + { + StoreSettings.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsEntityDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsEntityDataset.cs new file mode 100644 index 000000000000..8325649af1fd --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsEntityDataset.cs @@ -0,0 +1,88 @@ +// +// 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. +// + +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; + + /// + /// The Common Data Service for Apps entity dataset. + /// + [Newtonsoft.Json.JsonObject("CommonDataServiceForAppsEntity")] + [Rest.Serialization.JsonTransformation] + public partial class CommonDataServiceForAppsEntityDataset : Dataset + { + /// + /// Initializes a new instance of the + /// CommonDataServiceForAppsEntityDataset class. + /// + public CommonDataServiceForAppsEntityDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CommonDataServiceForAppsEntityDataset class. + /// + /// Linked service reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The logical name of the entity. Type: + /// string (or Expression with resultType string). + public CommonDataServiceForAppsEntityDataset(LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), object entityName = default(object)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + EntityName = entityName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the logical name of the entity. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.entityName")] + public object EntityName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.cs new file mode 100644 index 000000000000..75a317ca35c8 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.cs @@ -0,0 +1,204 @@ +// +// 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. +// + +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; + + /// + /// Common Data Service for Apps linked service. + /// + [Newtonsoft.Json.JsonObject("CommonDataServiceForApps")] + [Rest.Serialization.JsonTransformation] + public partial class CommonDataServiceForAppsLinkedService : LinkedService + { + /// + /// Initializes a new instance of the + /// CommonDataServiceForAppsLinkedService class. + /// + public CommonDataServiceForAppsLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CommonDataServiceForAppsLinkedService class. + /// + /// The deployment type of the Common Data + /// Service for Apps instance. 'Online' for Common Data Service for + /// Apps Online and 'OnPremisesWithIfd' for Common Data Service for + /// Apps on-premises with Ifd. Type: string (or Expression with + /// resultType string). Possible values include: 'Online', + /// 'OnPremisesWithIfd' + /// The authentication type to connect + /// to Common Data Service for Apps server. 'Office365' for online + /// scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or + /// Expression with resultType string). Possible values include: + /// 'Office365', 'Ifd' + /// User name to access the Common Data Service + /// for Apps instance. Type: string (or Expression with resultType + /// string). + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The host name of the on-premises Common Data + /// Service for Apps server. The property is required for on-prem and + /// not allowed for online. Type: string (or Expression with resultType + /// string). + /// The port of on-premises Common Data Service for + /// Apps server. The property is required for on-prem and not allowed + /// for online. Default is 443. Type: integer (or Expression with + /// resultType integer), minimum: 0. + /// The URL to the Microsoft Common Data + /// Service for Apps server. The property is required for on-line and + /// not allowed for on-prem. Type: string (or Expression with + /// resultType string). + /// The organization name of the Common + /// Data Service for Apps instance. The property is required for + /// on-prem and required for online when there are more than one Common + /// Data Service for Apps instances associated with the user. Type: + /// string (or Expression with resultType string). + /// Password to access the Common Data Service + /// for Apps instance. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public CommonDataServiceForAppsLinkedService(string deploymentType, string authenticationType, object username, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object hostName = default(object), object port = default(object), object serviceUri = default(object), object organizationName = default(object), SecretBase password = default(SecretBase), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + DeploymentType = deploymentType; + HostName = hostName; + Port = port; + ServiceUri = serviceUri; + OrganizationName = organizationName; + AuthenticationType = authenticationType; + Username = username; + Password = password; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the deployment type of the Common Data Service for + /// Apps instance. 'Online' for Common Data Service for Apps Online and + /// 'OnPremisesWithIfd' for Common Data Service for Apps on-premises + /// with Ifd. Type: string (or Expression with resultType string). + /// Possible values include: 'Online', 'OnPremisesWithIfd' + /// + [JsonProperty(PropertyName = "typeProperties.deploymentType")] + public string DeploymentType { get; set; } + + /// + /// Gets or sets the host name of the on-premises Common Data Service + /// for Apps server. The property is required for on-prem and not + /// allowed for online. Type: string (or Expression with resultType + /// string). + /// + [JsonProperty(PropertyName = "typeProperties.hostName")] + public object HostName { get; set; } + + /// + /// Gets or sets the port of on-premises Common Data Service for Apps + /// server. The property is required for on-prem and not allowed for + /// online. Default is 443. Type: integer (or Expression with + /// resultType integer), minimum: 0. + /// + [JsonProperty(PropertyName = "typeProperties.port")] + public object Port { get; set; } + + /// + /// Gets or sets the URL to the Microsoft Common Data Service for Apps + /// server. The property is required for on-line and not allowed for + /// on-prem. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.serviceUri")] + public object ServiceUri { get; set; } + + /// + /// Gets or sets the organization name of the Common Data Service for + /// Apps instance. The property is required for on-prem and required + /// for online when there are more than one Common Data Service for + /// Apps instances associated with the user. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.organizationName")] + public object OrganizationName { get; set; } + + /// + /// Gets or sets the authentication type to connect to Common Data + /// Service for Apps server. 'Office365' for online scenario, 'Ifd' for + /// on-premises with Ifd scenario. Type: string (or Expression with + /// resultType string). Possible values include: 'Office365', 'Ifd' + /// + [JsonProperty(PropertyName = "typeProperties.authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets user name to access the Common Data Service for Apps + /// instance. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.username")] + public object Username { get; set; } + + /// + /// Gets or sets password to access the Common Data Service for Apps + /// instance. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (DeploymentType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DeploymentType"); + } + if (AuthenticationType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); + } + if (Username == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Username"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs new file mode 100644 index 000000000000..3d2ecc7c8606 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSink.cs @@ -0,0 +1,89 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Common Data Service for Apps sink. + /// + public partial class CommonDataServiceForAppsSink : CopySink + { + /// + /// Initializes a new instance of the CommonDataServiceForAppsSink + /// class. + /// + public CommonDataServiceForAppsSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CommonDataServiceForAppsSink + /// class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// The flag indicating whether to + /// ignore null values from input dataset (except key fields) during + /// write operation. Default is false. Type: boolean (or Expression + /// with resultType boolean). + public CommonDataServiceForAppsSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + IgnoreNullValues = ignoreNullValues; + CustomInit(); + } + /// + /// Static constructor for CommonDataServiceForAppsSink class. + /// + static CommonDataServiceForAppsSink() + { + WriteBehavior = "Upsert"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the flag indicating whether to ignore null values from + /// input dataset (except key fields) during write operation. Default + /// is false. Type: boolean (or Expression with resultType boolean). + /// + [JsonProperty(PropertyName = "ignoreNullValues")] + public object IgnoreNullValues { get; set; } + + /// + /// The write behavior for the operation. + /// + [JsonProperty(PropertyName = "writeBehavior")] + public static string WriteBehavior { get; private set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSource.cs new file mode 100644 index 000000000000..62918054e7ca --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CommonDataServiceForAppsSource.cs @@ -0,0 +1,71 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Common Data Service for Apps source. + /// + public partial class CommonDataServiceForAppsSource : CopySource + { + /// + /// Initializes a new instance of the CommonDataServiceForAppsSource + /// class. + /// + public CommonDataServiceForAppsSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CommonDataServiceForAppsSource + /// class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// FetchXML is a proprietary query language that + /// is used in Microsoft Common Data Service for Apps (online & + /// on-premises). Type: string (or Expression with resultType + /// string). + public CommonDataServiceForAppsSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object query = default(object)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + Query = query; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets fetchXML is a proprietary query language that is used + /// in Microsoft Common Data Service for Apps (online &amp; + /// on-premises). Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "query")] + public object Query { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsAuthenticationType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsAuthenticationType.cs new file mode 100644 index 000000000000..614215a7b1b4 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsAuthenticationType.cs @@ -0,0 +1,22 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for DynamicsAuthenticationType. + /// + public static class DynamicsAuthenticationType + { + public const string Office365 = "Office365"; + public const string Ifd = "Ifd"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmEntityDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmEntityDataset.cs new file mode 100644 index 000000000000..3c5eade34448 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmEntityDataset.cs @@ -0,0 +1,86 @@ +// +// 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. +// + +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; + + /// + /// The Dynamics CRM entity dataset. + /// + [Newtonsoft.Json.JsonObject("DynamicsCrmEntity")] + [Rest.Serialization.JsonTransformation] + public partial class DynamicsCrmEntityDataset : Dataset + { + /// + /// Initializes a new instance of the DynamicsCrmEntityDataset class. + /// + public DynamicsCrmEntityDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the DynamicsCrmEntityDataset class. + /// + /// Linked service reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The logical name of the entity. Type: + /// string (or Expression with resultType string). + public DynamicsCrmEntityDataset(LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), object entityName = default(object)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + EntityName = entityName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the logical name of the entity. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.entityName")] + public object EntityName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.cs new file mode 100644 index 000000000000..259839e75d2d --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.cs @@ -0,0 +1,198 @@ +// +// 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. +// + +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; + + /// + /// Dynamics CRM linked service. + /// + [Newtonsoft.Json.JsonObject("DynamicsCrm")] + [Rest.Serialization.JsonTransformation] + public partial class DynamicsCrmLinkedService : LinkedService + { + /// + /// Initializes a new instance of the DynamicsCrmLinkedService class. + /// + public DynamicsCrmLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DynamicsCrmLinkedService class. + /// + /// The deployment type of the Dynamics + /// CRM instance. 'Online' for Dynamics CRM Online and + /// 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: + /// string (or Expression with resultType string). Possible values + /// include: 'Online', 'OnPremisesWithIfd' + /// The authentication type to connect + /// to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for + /// on-premises with Ifd scenario. Type: string (or Expression with + /// resultType string). Possible values include: 'Office365', + /// 'Ifd' + /// User name to access the Dynamics CRM + /// instance. Type: string (or Expression with resultType + /// string). + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The host name of the on-premises Dynamics + /// CRM server. The property is required for on-prem and not allowed + /// for online. Type: string (or Expression with resultType + /// string). + /// The port of on-premises Dynamics CRM server. The + /// property is required for on-prem and not allowed for online. + /// Default is 443. Type: integer (or Expression with resultType + /// integer), minimum: 0. + /// The URL to the Microsoft Dynamics CRM + /// server. The property is required for on-line and not allowed for + /// on-prem. Type: string (or Expression with resultType + /// string). + /// The organization name of the + /// Dynamics CRM instance. The property is required for on-prem and + /// required for online when there are more than one Dynamics CRM + /// instances associated with the user. Type: string (or Expression + /// with resultType string). + /// Password to access the Dynamics CRM + /// instance. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public DynamicsCrmLinkedService(string deploymentType, string authenticationType, object username, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object hostName = default(object), object port = default(object), object serviceUri = default(object), object organizationName = default(object), SecretBase password = default(SecretBase), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + DeploymentType = deploymentType; + HostName = hostName; + Port = port; + ServiceUri = serviceUri; + OrganizationName = organizationName; + AuthenticationType = authenticationType; + Username = username; + Password = password; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the deployment type of the Dynamics CRM instance. + /// 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for + /// Dynamics CRM on-premises with Ifd. Type: string (or Expression with + /// resultType string). Possible values include: 'Online', + /// 'OnPremisesWithIfd' + /// + [JsonProperty(PropertyName = "typeProperties.deploymentType")] + public string DeploymentType { get; set; } + + /// + /// Gets or sets the host name of the on-premises Dynamics CRM server. + /// The property is required for on-prem and not allowed for online. + /// Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.hostName")] + public object HostName { get; set; } + + /// + /// Gets or sets the port of on-premises Dynamics CRM server. The + /// property is required for on-prem and not allowed for online. + /// Default is 443. Type: integer (or Expression with resultType + /// integer), minimum: 0. + /// + [JsonProperty(PropertyName = "typeProperties.port")] + public object Port { get; set; } + + /// + /// Gets or sets the URL to the Microsoft Dynamics CRM server. The + /// property is required for on-line and not allowed for on-prem. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.serviceUri")] + public object ServiceUri { get; set; } + + /// + /// Gets or sets the organization name of the Dynamics CRM instance. + /// The property is required for on-prem and required for online when + /// there are more than one Dynamics CRM instances associated with the + /// user. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.organizationName")] + public object OrganizationName { get; set; } + + /// + /// Gets or sets the authentication type to connect to Dynamics CRM + /// server. 'Office365' for online scenario, 'Ifd' for on-premises with + /// Ifd scenario. Type: string (or Expression with resultType string). + /// Possible values include: 'Office365', 'Ifd' + /// + [JsonProperty(PropertyName = "typeProperties.authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets user name to access the Dynamics CRM instance. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.username")] + public object Username { get; set; } + + /// + /// Gets or sets password to access the Dynamics CRM instance. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (DeploymentType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DeploymentType"); + } + if (AuthenticationType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); + } + if (Username == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Username"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs new file mode 100644 index 000000000000..25a45867354d --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSink.cs @@ -0,0 +1,87 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Dynamics CRM sink. + /// + public partial class DynamicsCrmSink : CopySink + { + /// + /// Initializes a new instance of the DynamicsCrmSink class. + /// + public DynamicsCrmSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DynamicsCrmSink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// The flag indicating whether to + /// ignore null values from input dataset (except key fields) during + /// write operation. Default is false. Type: boolean (or Expression + /// with resultType boolean). + public DynamicsCrmSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + IgnoreNullValues = ignoreNullValues; + CustomInit(); + } + /// + /// Static constructor for DynamicsCrmSink class. + /// + static DynamicsCrmSink() + { + WriteBehavior = "Upsert"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the flag indicating whether to ignore null values from + /// input dataset (except key fields) during write operation. Default + /// is false. Type: boolean (or Expression with resultType boolean). + /// + [JsonProperty(PropertyName = "ignoreNullValues")] + public object IgnoreNullValues { get; set; } + + /// + /// The write behavior for the operation. + /// + [JsonProperty(PropertyName = "writeBehavior")] + public static string WriteBehavior { get; private set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSource.cs new file mode 100644 index 000000000000..0417c432bde7 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsCrmSource.cs @@ -0,0 +1,68 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Dynamics CRM source. + /// + public partial class DynamicsCrmSource : CopySource + { + /// + /// Initializes a new instance of the DynamicsCrmSource class. + /// + public DynamicsCrmSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DynamicsCrmSource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// FetchXML is a proprietary query language that + /// is used in Microsoft Dynamics CRM (online & on-premises). Type: + /// string (or Expression with resultType string). + public DynamicsCrmSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object query = default(object)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + Query = query; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets fetchXML is a proprietary query language that is used + /// in Microsoft Dynamics CRM (online &amp; on-premises). Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "query")] + public object Query { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsDeploymentType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsDeploymentType.cs new file mode 100644 index 000000000000..393579fc62e7 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DynamicsDeploymentType.cs @@ -0,0 +1,22 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for DynamicsDeploymentType. + /// + public static class DynamicsDeploymentType + { + public const string Online = "Online"; + public const string OnPremisesWithIfd = "OnPremisesWithIfd"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteSSISPackageActivity.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteSSISPackageActivity.cs index ddf955ce1518..007159242925 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteSSISPackageActivity.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteSSISPackageActivity.cs @@ -67,7 +67,9 @@ public ExecuteSSISPackageActivity() /// connection managers to execute the SSIS package. /// The property overrides to execute /// the SSIS package. - public ExecuteSSISPackageActivity(string name, SSISPackageLocation packageLocation, IntegrationRuntimeReference connectVia, IDictionary additionalProperties = default(IDictionary), string description = default(string), IList dependsOn = default(IList), IList userProperties = default(IList), 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 projectParameters = default(IDictionary), IDictionary packageParameters = default(IDictionary), IDictionary> projectConnectionManagers = default(IDictionary>), IDictionary> packageConnectionManagers = default(IDictionary>), IDictionary propertyOverrides = default(IDictionary)) + /// SSIS package execution log + /// location. + public ExecuteSSISPackageActivity(string name, SSISPackageLocation packageLocation, IntegrationRuntimeReference connectVia, IDictionary additionalProperties = default(IDictionary), string description = default(string), IList dependsOn = default(IList), IList userProperties = default(IList), 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 projectParameters = default(IDictionary), IDictionary packageParameters = default(IDictionary), IDictionary> projectConnectionManagers = default(IDictionary>), IDictionary> packageConnectionManagers = default(IDictionary>), IDictionary propertyOverrides = default(IDictionary), SSISLogLocation logLocation = default(SSISLogLocation)) : base(name, additionalProperties, description, dependsOn, userProperties, linkedServiceName, policy) { PackageLocation = packageLocation; @@ -81,6 +83,7 @@ public ExecuteSSISPackageActivity() ProjectConnectionManagers = projectConnectionManagers; PackageConnectionManagers = packageConnectionManagers; PropertyOverrides = propertyOverrides; + LogLocation = logLocation; CustomInit(); } @@ -163,6 +166,12 @@ public ExecuteSSISPackageActivity() [JsonProperty(PropertyName = "typeProperties.propertyOverrides")] public IDictionary PropertyOverrides { get; set; } + /// + /// Gets or sets SSIS package execution log location. + /// + [JsonProperty(PropertyName = "typeProperties.logLocation")] + public SSISLogLocation LogLocation { get; set; } + /// /// Validate the object. /// @@ -254,6 +263,10 @@ public override void Validate() } } } + if (LogLocation != null) + { + LogLocation.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixLinkedService.cs new file mode 100644 index 000000000000..c278c502e454 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixLinkedService.cs @@ -0,0 +1,138 @@ +// +// 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. +// + +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; + + /// + /// Informix linked service. + /// + [Newtonsoft.Json.JsonObject("Informix")] + [Rest.Serialization.JsonTransformation] + public partial class InformixLinkedService : LinkedService + { + /// + /// Initializes a new instance of the InformixLinkedService class. + /// + public InformixLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InformixLinkedService class. + /// + /// The non-access credential portion of + /// the connection string as well as an optional encrypted credential. + /// Type: string, SecureString or AzureKeyVaultSecretReference. + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// Type of authentication used to + /// connect to the Informix as ODBC data store. Possible values are: + /// Anonymous and Basic. Type: string (or Expression with resultType + /// string). + /// The access credential portion of the + /// connection string specified in driver-specific property-value + /// format. + /// User name for Basic authentication. Type: + /// string (or Expression with resultType string). + /// Password for Basic authentication. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public InformixLinkedService(object connectionString, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object authenticationType = default(object), SecretBase credential = default(SecretBase), object userName = default(object), SecretBase password = default(SecretBase), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + ConnectionString = connectionString; + AuthenticationType = authenticationType; + Credential = credential; + UserName = userName; + Password = password; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the non-access credential portion of the connection + /// string as well as an optional encrypted credential. Type: string, + /// SecureString or AzureKeyVaultSecretReference. + /// + [JsonProperty(PropertyName = "typeProperties.connectionString")] + public object ConnectionString { get; set; } + + /// + /// Gets or sets type of authentication used to connect to the Informix + /// as ODBC data store. Possible values are: Anonymous and Basic. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.authenticationType")] + public object AuthenticationType { get; set; } + + /// + /// Gets or sets the access credential portion of the connection string + /// specified in driver-specific property-value format. + /// + [JsonProperty(PropertyName = "typeProperties.credential")] + public SecretBase Credential { get; set; } + + /// + /// Gets or sets user name for Basic authentication. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.userName")] + public object UserName { get; set; } + + /// + /// Gets or sets password for Basic authentication. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (ConnectionString == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs new file mode 100644 index 000000000000..0ceb858146c6 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSink.cs @@ -0,0 +1,71 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Informix sink. + /// + public partial class InformixSink : CopySink + { + /// + /// Initializes a new instance of the InformixSink class. + /// + public InformixSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InformixSink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// A query to execute before starting the + /// copy. Type: string (or Expression with resultType string). + public InformixSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + PreCopyScript = preCopyScript; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a query to execute before starting the copy. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "preCopyScript")] + public object PreCopyScript { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSource.cs new file mode 100644 index 000000000000..d99d75669751 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixSource.cs @@ -0,0 +1,66 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity source for Informix. + /// + public partial class InformixSource : CopySource + { + /// + /// Initializes a new instance of the InformixSource class. + /// + public InformixSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InformixSource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// Database query. Type: string (or Expression + /// with resultType string). + public InformixSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object query = default(object)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + Query = query; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets database query. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "query")] + public object Query { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixTableDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixTableDataset.cs new file mode 100644 index 000000000000..9c340ee55b3c --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/InformixTableDataset.cs @@ -0,0 +1,86 @@ +// +// 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. +// + +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; + + /// + /// The Informix table dataset. + /// + [Newtonsoft.Json.JsonObject("InformixTable")] + [Rest.Serialization.JsonTransformation] + public partial class InformixTableDataset : Dataset + { + /// + /// Initializes a new instance of the InformixTableDataset class. + /// + public InformixTableDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the InformixTableDataset class. + /// + /// Linked service reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The Informix table name. Type: string (or + /// Expression with resultType string). + public InformixTableDataset(LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), object tableName = default(object)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + TableName = tableName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Informix table name. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.tableName")] + public object TableName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.cs new file mode 100644 index 000000000000..a8e2d871318a --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.cs @@ -0,0 +1,140 @@ +// +// 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. +// + +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; + + /// + /// Microsoft Access linked service. + /// + [Newtonsoft.Json.JsonObject("MicrosoftAccess")] + [Rest.Serialization.JsonTransformation] + public partial class MicrosoftAccessLinkedService : LinkedService + { + /// + /// Initializes a new instance of the MicrosoftAccessLinkedService + /// class. + /// + public MicrosoftAccessLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MicrosoftAccessLinkedService + /// class. + /// + /// The non-access credential portion of + /// the connection string as well as an optional encrypted credential. + /// Type: string, SecureString or AzureKeyVaultSecretReference. + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// Type of authentication used to + /// connect to the Microsoft Access as ODBC data store. Possible values + /// are: Anonymous and Basic. Type: string (or Expression with + /// resultType string). + /// The access credential portion of the + /// connection string specified in driver-specific property-value + /// format. + /// User name for Basic authentication. Type: + /// string (or Expression with resultType string). + /// Password for Basic authentication. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public MicrosoftAccessLinkedService(object connectionString, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object authenticationType = default(object), SecretBase credential = default(SecretBase), object userName = default(object), SecretBase password = default(SecretBase), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + ConnectionString = connectionString; + AuthenticationType = authenticationType; + Credential = credential; + UserName = userName; + Password = password; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the non-access credential portion of the connection + /// string as well as an optional encrypted credential. Type: string, + /// SecureString or AzureKeyVaultSecretReference. + /// + [JsonProperty(PropertyName = "typeProperties.connectionString")] + public object ConnectionString { get; set; } + + /// + /// Gets or sets type of authentication used to connect to the + /// Microsoft Access as ODBC data store. Possible values are: Anonymous + /// and Basic. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.authenticationType")] + public object AuthenticationType { get; set; } + + /// + /// Gets or sets the access credential portion of the connection string + /// specified in driver-specific property-value format. + /// + [JsonProperty(PropertyName = "typeProperties.credential")] + public SecretBase Credential { get; set; } + + /// + /// Gets or sets user name for Basic authentication. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.userName")] + public object UserName { get; set; } + + /// + /// Gets or sets password for Basic authentication. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (ConnectionString == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs new file mode 100644 index 000000000000..899d6f038b43 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSink.cs @@ -0,0 +1,71 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Microsoft Access sink. + /// + public partial class MicrosoftAccessSink : CopySink + { + /// + /// Initializes a new instance of the MicrosoftAccessSink class. + /// + public MicrosoftAccessSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MicrosoftAccessSink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// A query to execute before starting the + /// copy. Type: string (or Expression with resultType string). + public MicrosoftAccessSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + PreCopyScript = preCopyScript; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a query to execute before starting the copy. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "preCopyScript")] + public object PreCopyScript { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSource.cs new file mode 100644 index 000000000000..aaeb0e9efc35 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessSource.cs @@ -0,0 +1,66 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity source for Microsoft Access. + /// + public partial class MicrosoftAccessSource : CopySource + { + /// + /// Initializes a new instance of the MicrosoftAccessSource class. + /// + public MicrosoftAccessSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MicrosoftAccessSource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// Database query. Type: string (or Expression + /// with resultType string). + public MicrosoftAccessSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object query = default(object)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + Query = query; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets database query. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "query")] + public object Query { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessTableDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessTableDataset.cs new file mode 100644 index 000000000000..474f6818939d --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MicrosoftAccessTableDataset.cs @@ -0,0 +1,88 @@ +// +// 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. +// + +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; + + /// + /// The Microsoft Access table dataset. + /// + [Newtonsoft.Json.JsonObject("MicrosoftAccessTable")] + [Rest.Serialization.JsonTransformation] + public partial class MicrosoftAccessTableDataset : Dataset + { + /// + /// Initializes a new instance of the MicrosoftAccessTableDataset + /// class. + /// + public MicrosoftAccessTableDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the MicrosoftAccessTableDataset + /// class. + /// + /// Linked service reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The Microsoft Access table name. Type: + /// string (or Expression with resultType string). + public MicrosoftAccessTableDataset(LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), object tableName = default(object)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + TableName = tableName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Microsoft Access table name. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.tableName")] + public object TableName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISAccessCredential.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISAccessCredential.cs new file mode 100644 index 000000000000..79818e92cc1e --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISAccessCredential.cs @@ -0,0 +1,93 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// SSIS access credential. + /// + public partial class SSISAccessCredential + { + /// + /// Initializes a new instance of the SSISAccessCredential class. + /// + public SSISAccessCredential() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SSISAccessCredential class. + /// + /// Domain for windows authentication. + /// UseName for windows authentication. + /// Password for windows authentication. + public SSISAccessCredential(object domain, object userName, SecureString password) + { + Domain = domain; + UserName = userName; + Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets domain for windows authentication. + /// + [JsonProperty(PropertyName = "domain")] + public object Domain { get; set; } + + /// + /// Gets or sets useName for windows authentication. + /// + [JsonProperty(PropertyName = "userName")] + public object UserName { get; set; } + + /// + /// Gets or sets password for windows authentication. + /// + [JsonProperty(PropertyName = "password")] + public SecureString Password { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + 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(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISLogLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISLogLocation.cs new file mode 100644 index 000000000000..39c5ad5cb5af --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISLogLocation.cs @@ -0,0 +1,109 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// SSIS package execution log location + /// + [Rest.Serialization.JsonTransformation] + public partial class SSISLogLocation + { + /// + /// Initializes a new instance of the SSISLogLocation class. + /// + public SSISLogLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SSISLogLocation class. + /// + /// The SSIS package execution log path. Type: + /// string (or Expression with resultType string). + /// The package execution log access + /// credential. + /// Specifies the interval to refresh + /// log. The default interval is 5 minutes. Type: string (or Expression + /// with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + public SSISLogLocation(object logPath, SSISAccessCredential accessCredential = default(SSISAccessCredential), object logRefreshInterval = default(object)) + { + LogPath = logPath; + AccessCredential = accessCredential; + LogRefreshInterval = logRefreshInterval; + CustomInit(); + } + /// + /// Static constructor for SSISLogLocation class. + /// + static SSISLogLocation() + { + Type = "File"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the SSIS package execution log path. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "logPath")] + public object LogPath { get; set; } + + /// + /// Gets or sets the package execution log access credential. + /// + [JsonProperty(PropertyName = "typeProperties.accessCredential")] + public SSISAccessCredential AccessCredential { get; set; } + + /// + /// Gets or sets specifies the interval to refresh log. The default + /// interval is 5 minutes. Type: string (or Expression with resultType + /// string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// + [JsonProperty(PropertyName = "typeProperties.logRefreshInterval")] + public object LogRefreshInterval { get; set; } + + /// + /// The type of SSIS log location. + /// + [JsonProperty(PropertyName = "type")] + public static string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LogPath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LogPath"); + } + if (AccessCredential != null) + { + AccessCredential.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.cs new file mode 100644 index 000000000000..6146660aedd0 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.cs @@ -0,0 +1,142 @@ +// +// 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. +// + +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; + + /// + /// Linked service for Salesforce Service Cloud. + /// + [Newtonsoft.Json.JsonObject("SalesforceServiceCloud")] + [Rest.Serialization.JsonTransformation] + public partial class SalesforceServiceCloudLinkedService : LinkedService + { + /// + /// Initializes a new instance of the + /// SalesforceServiceCloudLinkedService class. + /// + public SalesforceServiceCloudLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// SalesforceServiceCloudLinkedService class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The URL of Salesforce Service Cloud + /// instance. Default is 'https://login.salesforce.com'. To copy data + /// from sandbox, specify 'https://test.salesforce.com'. To copy data + /// from custom domain, specify, for example, + /// 'https://[domain].my.salesforce.com'. Type: string (or Expression + /// with resultType string). + /// The username for Basic authentication of the + /// Salesforce instance. Type: string (or Expression with resultType + /// string). + /// The password for Basic authentication of the + /// Salesforce instance. + /// The security token is required to + /// remotely access Salesforce instance. + /// Extended properties appended to + /// the connection string. Type: string (or Expression with resultType + /// string). + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public SalesforceServiceCloudLinkedService(IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object environmentUrl = default(object), object username = default(object), SecretBase password = default(SecretBase), SecretBase securityToken = default(SecretBase), object extendedProperties = default(object), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + EnvironmentUrl = environmentUrl; + Username = username; + Password = password; + SecurityToken = securityToken; + ExtendedProperties = extendedProperties; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URL of Salesforce Service Cloud instance. Default + /// is 'https://login.salesforce.com'. To copy data from sandbox, + /// specify 'https://test.salesforce.com'. To copy data from custom + /// domain, specify, for example, 'https://[domain].my.salesforce.com'. + /// Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.environmentUrl")] + public object EnvironmentUrl { get; set; } + + /// + /// Gets or sets the username for Basic authentication of the + /// Salesforce instance. Type: string (or Expression with resultType + /// string). + /// + [JsonProperty(PropertyName = "typeProperties.username")] + public object Username { get; set; } + + /// + /// Gets or sets the password for Basic authentication of the + /// Salesforce instance. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// Gets or sets the security token is required to remotely access + /// Salesforce instance. + /// + [JsonProperty(PropertyName = "typeProperties.securityToken")] + public SecretBase SecurityToken { get; set; } + + /// + /// Gets or sets extended properties appended to the connection string. + /// Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.extendedProperties")] + public object ExtendedProperties { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudObjectDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudObjectDataset.cs new file mode 100644 index 000000000000..9b5749e9939f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudObjectDataset.cs @@ -0,0 +1,88 @@ +// +// 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. +// + +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; + + /// + /// The Salesforce Service Cloud object dataset. + /// + [Newtonsoft.Json.JsonObject("SalesforceServiceCloudObject")] + [Rest.Serialization.JsonTransformation] + public partial class SalesforceServiceCloudObjectDataset : Dataset + { + /// + /// Initializes a new instance of the + /// SalesforceServiceCloudObjectDataset class. + /// + public SalesforceServiceCloudObjectDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// SalesforceServiceCloudObjectDataset class. + /// + /// Linked service reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The Salesforce Service Cloud object API + /// name. Type: string (or Expression with resultType string). + public SalesforceServiceCloudObjectDataset(LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), object objectApiName = default(object)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + ObjectApiName = objectApiName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Salesforce Service Cloud object API name. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.objectApiName")] + public object ObjectApiName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs new file mode 100644 index 000000000000..a260bddc659c --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSink.cs @@ -0,0 +1,108 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Salesforce Service Cloud sink. + /// + public partial class SalesforceServiceCloudSink : CopySink + { + /// + /// Initializes a new instance of the SalesforceServiceCloudSink class. + /// + public SalesforceServiceCloudSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SalesforceServiceCloudSink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// The write behavior for the operation. + /// Default is Insert. Possible values include: 'Insert', + /// 'Upsert' + /// The name of the external ID field + /// for upsert operation. Default value is 'Id' column. Type: string + /// (or Expression with resultType string). + /// The flag indicating whether or not + /// to ignore null values from input dataset (except key fields) during + /// write operation. Default value is false. If set it to true, it + /// means ADF will leave the data in the destination object unchanged + /// when doing upsert/update operation and insert defined default value + /// when doing insert operation, versus ADF will update the data in the + /// destination object to NULL when doing upsert/update operation and + /// insert NULL value when doing insert operation. Type: boolean (or + /// Expression with resultType boolean). + public SalesforceServiceCloudSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), string writeBehavior = default(string), object externalIdFieldName = default(object), object ignoreNullValues = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + WriteBehavior = writeBehavior; + ExternalIdFieldName = externalIdFieldName; + IgnoreNullValues = ignoreNullValues; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the write behavior for the operation. Default is + /// Insert. Possible values include: 'Insert', 'Upsert' + /// + [JsonProperty(PropertyName = "writeBehavior")] + public string WriteBehavior { get; set; } + + /// + /// Gets or sets the name of the external ID field for upsert + /// operation. Default value is 'Id' column. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "externalIdFieldName")] + public object ExternalIdFieldName { get; set; } + + /// + /// Gets or sets the flag indicating whether or not to ignore null + /// values from input dataset (except key fields) during write + /// operation. Default value is false. If set it to true, it means ADF + /// will leave the data in the destination object unchanged when doing + /// upsert/update operation and insert defined default value when doing + /// insert operation, versus ADF will update the data in the + /// destination object to NULL when doing upsert/update operation and + /// insert NULL value when doing insert operation. Type: boolean (or + /// Expression with resultType boolean). + /// + [JsonProperty(PropertyName = "ignoreNullValues")] + public object IgnoreNullValues { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.cs new file mode 100644 index 000000000000..5c5b32584e0a --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.cs @@ -0,0 +1,79 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Salesforce Service Cloud source. + /// + public partial class SalesforceServiceCloudSource : CopySource + { + /// + /// Initializes a new instance of the SalesforceServiceCloudSource + /// class. + /// + public SalesforceServiceCloudSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SalesforceServiceCloudSource + /// class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// Database query. Type: string (or Expression + /// with resultType string). + /// The read behavior for the operation. + /// Default is Query. Possible values include: 'Query', + /// 'QueryAll' + public SalesforceServiceCloudSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object query = default(object), string readBehavior = default(string)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + Query = query; + ReadBehavior = readBehavior; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets database query. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "query")] + public object Query { get; set; } + + /// + /// Gets or sets the read behavior for the operation. Default is Query. + /// Possible values include: 'Query', 'QueryAll' + /// + [JsonProperty(PropertyName = "readBehavior")] + public string ReadBehavior { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs new file mode 100644 index 000000000000..5044366f301f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISink.cs @@ -0,0 +1,112 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Azure SQL Managed Instance sink. + /// + public partial class SqlMISink : CopySink + { + /// + /// Initializes a new instance of the SqlMISink class. + /// + public SqlMISink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlMISink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// SQL writer stored + /// procedure name. Type: string (or Expression with resultType + /// string). + /// SQL writer table type. Type: + /// string (or Expression with resultType string). + /// SQL pre-copy script. Type: string (or + /// Expression with resultType string). + /// SQL stored procedure + /// parameters. + /// The stored + /// procedure parameter name of the table type. Type: string (or + /// Expression with resultType string). + public SqlMISink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlWriterStoredProcedureName = default(object), object sqlWriterTableType = default(object), object preCopyScript = default(object), IDictionary storedProcedureParameters = default(IDictionary), object storedProcedureTableTypeParameterName = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; + SqlWriterTableType = sqlWriterTableType; + PreCopyScript = preCopyScript; + StoredProcedureParameters = storedProcedureParameters; + StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SQL writer stored procedure name. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "sqlWriterStoredProcedureName")] + public object SqlWriterStoredProcedureName { get; set; } + + /// + /// Gets or sets SQL writer table type. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "sqlWriterTableType")] + public object SqlWriterTableType { get; set; } + + /// + /// Gets or sets SQL pre-copy script. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "preCopyScript")] + public object PreCopyScript { get; set; } + + /// + /// Gets or sets SQL stored procedure parameters. + /// + [JsonProperty(PropertyName = "storedProcedureParameters")] + public IDictionary StoredProcedureParameters { get; set; } + + /// + /// Gets or sets the stored procedure parameter name of the table type. + /// Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "storedProcedureTableTypeParameterName")] + public object StoredProcedureTableTypeParameterName { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISource.cs new file mode 100644 index 000000000000..4cd48599b4c5 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SqlMISource.cs @@ -0,0 +1,100 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Azure SQL Managed Instance source. + /// + public partial class SqlMISource : CopySource + { + /// + /// Initializes a new instance of the SqlMISource class. + /// + public SqlMISource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlMISource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// SQL reader query. Type: string (or + /// Expression with resultType string). + /// Name of the stored + /// procedure for a Azure SQL Managed Instance source. This cannot be + /// used at the same time as SqlReaderQuery. Type: string (or + /// Expression with resultType string). + /// Value and type setting for + /// stored procedure parameters. Example: "{Parameter1: {value: "1", + /// type: "int"}}". + /// Which additional types to + /// produce. + public SqlMISource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object sqlReaderQuery = default(object), object sqlReaderStoredProcedureName = default(object), IDictionary storedProcedureParameters = default(IDictionary), object produceAdditionalTypes = default(object)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + SqlReaderQuery = sqlReaderQuery; + SqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + StoredProcedureParameters = storedProcedureParameters; + ProduceAdditionalTypes = produceAdditionalTypes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SQL reader query. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "sqlReaderQuery")] + public object SqlReaderQuery { get; set; } + + /// + /// Gets or sets name of the stored procedure for a Azure SQL Managed + /// Instance source. This cannot be used at the same time as + /// SqlReaderQuery. Type: string (or Expression with resultType + /// string). + /// + [JsonProperty(PropertyName = "sqlReaderStoredProcedureName")] + public object SqlReaderStoredProcedureName { get; set; } + + /// + /// Gets or sets value and type setting for stored procedure + /// parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + /// + [JsonProperty(PropertyName = "storedProcedureParameters")] + public IDictionary StoredProcedureParameters { get; set; } + + /// + /// Gets or sets which additional types to produce. + /// + [JsonProperty(PropertyName = "produceAdditionalTypes")] + public object ProduceAdditionalTypes { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs index 0ca3385efe22..b15e46801a6d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs @@ -11,12 +11,14 @@ namespace Microsoft.Azure.Management.DataFactory.Models { using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// SSIS package location. /// + [Rest.Serialization.JsonTransformation] public partial class SSISPackageLocation { /// @@ -32,9 +34,21 @@ public SSISPackageLocation() /// /// The SSIS package path. Type: string (or /// Expression with resultType string). - public SSISPackageLocation(object packagePath) + /// The type of SSIS package location. Possible + /// values include: 'SSISDB', 'File' + /// Password of the package. + /// The package access + /// credential. + /// The configuration file of the + /// package execution. Type: string (or Expression with resultType + /// string). + 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(); } @@ -50,6 +64,32 @@ public SSISPackageLocation(object packagePath) [JsonProperty(PropertyName = "packagePath")] public object PackagePath { get; set; } + /// + /// Gets or sets the type of SSIS package location. Possible values + /// include: 'SSISDB', 'File' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets password of the package. + /// + [JsonProperty(PropertyName = "typeProperties.packagePassword")] + public SecureString PackagePassword { get; set; } + + /// + /// Gets or sets the package access credential. + /// + [JsonProperty(PropertyName = "typeProperties.accessCredential")] + public SSISAccessCredential AccessCredential { get; set; } + + /// + /// Gets or sets the configuration file of the package execution. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.configurationPath")] + public object ConfigurationPath { get; set; } + /// /// Validate the object. /// @@ -62,6 +102,14 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "PackagePath"); } + if (PackagePassword != null) + { + PackagePassword.Validate(); + } + if (AccessCredential != null) + { + AccessCredential.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocationType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocationType.cs new file mode 100644 index 000000000000..ad8eb8fdd96c --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocationType.cs @@ -0,0 +1,22 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for SsisPackageLocationType. + /// + public static class SsisPackageLocationType + { + public const string SSISDB = "SSISDB"; + public const string File = "File"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataLinkedService.cs index 728a2672dcd5..2e23330ead57 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataLinkedService.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataLinkedService.cs @@ -35,8 +35,6 @@ public TeradataLinkedService() /// /// Initializes a new instance of the TeradataLinkedService class. /// - /// Server name for connection. Type: string (or - /// Expression with resultType string). /// Unmatched properties from the /// message are deserialized this collection /// The integration runtime reference. @@ -44,6 +42,10 @@ public TeradataLinkedService() /// Parameters for linked service. /// List of tags that can be used for /// describing the linked service. + /// Teradata ODBC connection string. + /// Type: string, SecureString or AzureKeyVaultSecretReference. + /// Server name for connection. Type: string (or + /// Expression with resultType string). /// AuthenticationType to be used for /// connection. Possible values include: 'Basic', 'Windows' /// Username for authentication. Type: string @@ -53,9 +55,10 @@ public TeradataLinkedService() /// authentication. Credentials are encrypted using the integration /// runtime credential manager. Type: string (or Expression with /// resultType string). - public TeradataLinkedService(object server, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), string authenticationType = default(string), object username = default(object), SecretBase password = default(SecretBase), object encryptedCredential = default(object)) + public TeradataLinkedService(IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object connectionString = default(object), object server = default(object), string authenticationType = default(string), object username = default(object), SecretBase password = default(SecretBase), object encryptedCredential = default(object)) : base(additionalProperties, connectVia, description, parameters, annotations) { + ConnectionString = connectionString; Server = server; AuthenticationType = authenticationType; Username = username; @@ -69,6 +72,13 @@ public TeradataLinkedService() /// partial void CustomInit(); + /// + /// Gets or sets teradata ODBC connection string. Type: string, + /// SecureString or AzureKeyVaultSecretReference. + /// + [JsonProperty(PropertyName = "typeProperties.connectionString")] + public object ConnectionString { get; set; } + /// /// Gets or sets server name for connection. Type: string (or /// Expression with resultType string). @@ -113,10 +123,6 @@ public TeradataLinkedService() public override void Validate() { base.Validate(); - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataPartitionOption.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataPartitionOption.cs new file mode 100644 index 000000000000..5522a89a5d79 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataPartitionOption.cs @@ -0,0 +1,23 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for TeradataPartitionOption. + /// + public static class TeradataPartitionOption + { + public const string None = "None"; + public const string Hash = "Hash"; + public const string DynamicRange = "DynamicRange"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataPartitionSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataPartitionSettings.cs new file mode 100644 index 000000000000..d1240a3941eb --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataPartitionSettings.cs @@ -0,0 +1,81 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The settings that will be leveraged for teradata source partitioning. + /// + public partial class TeradataPartitionSettings + { + /// + /// Initializes a new instance of the TeradataPartitionSettings class. + /// + public TeradataPartitionSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TeradataPartitionSettings class. + /// + /// The name of the column that will + /// be used for proceeding range or hash partitioning. Type: string (or + /// Expression with resultType string). + /// The maximum value of column + /// specified in partitionColumnName that will be used for proceeding + /// range partitioning. Type: string (or Expression with resultType + /// string). + /// The minimum value of column + /// specified in partitionColumnName that will be used for proceeding + /// range partitioning. Type: string (or Expression with resultType + /// string). + public TeradataPartitionSettings(object partitionColumnName = default(object), object partitionUpperBound = default(object), object partitionLowerBound = default(object)) + { + PartitionColumnName = partitionColumnName; + PartitionUpperBound = partitionUpperBound; + PartitionLowerBound = partitionLowerBound; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the column that will be used for + /// proceeding range or hash partitioning. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "partitionColumnName")] + public object PartitionColumnName { get; set; } + + /// + /// Gets or sets the maximum value of column specified in + /// partitionColumnName that will be used for proceeding range + /// partitioning. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "partitionUpperBound")] + public object PartitionUpperBound { get; set; } + + /// + /// Gets or sets the minimum value of column specified in + /// partitionColumnName that will be used for proceeding range + /// partitioning. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "partitionLowerBound")] + public object PartitionLowerBound { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataSource.cs new file mode 100644 index 000000000000..ee7d9bd77d32 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataSource.cs @@ -0,0 +1,88 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Teradata source. + /// + public partial class TeradataSource : CopySource + { + /// + /// Initializes a new instance of the TeradataSource class. + /// + public TeradataSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TeradataSource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// Teradata query. Type: string (or Expression + /// with resultType string). + /// The partition mechanism that will be + /// used for teradata read in parallel. Possible values include: + /// 'None', 'Hash', 'DynamicRange' + /// The settings that will be leveraged + /// for teradata source partitioning. + public TeradataSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object query = default(object), string partitionOption = default(string), TeradataPartitionSettings partitionSettings = default(TeradataPartitionSettings)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + Query = query; + PartitionOption = partitionOption; + PartitionSettings = partitionSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets teradata query. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "query")] + public object Query { get; set; } + + /// + /// Gets or sets the partition mechanism that will be used for teradata + /// read in parallel. Possible values include: 'None', 'Hash', + /// 'DynamicRange' + /// + [JsonProperty(PropertyName = "partitionOption")] + public string PartitionOption { get; set; } + + /// + /// Gets or sets the settings that will be leveraged for teradata + /// source partitioning. + /// + [JsonProperty(PropertyName = "partitionSettings")] + public TeradataPartitionSettings PartitionSettings { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataTableDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataTableDataset.cs new file mode 100644 index 000000000000..b89d0b37f4eb --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeradataTableDataset.cs @@ -0,0 +1,96 @@ +// +// 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. +// + +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; + + /// + /// The Teradata database dataset. + /// + [Newtonsoft.Json.JsonObject("TeradataTable")] + [Rest.Serialization.JsonTransformation] + public partial class TeradataTableDataset : Dataset + { + /// + /// Initializes a new instance of the TeradataTableDataset class. + /// + public TeradataTableDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the TeradataTableDataset class. + /// + /// Linked service reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The database name of Teradata. Type: string + /// (or Expression with resultType string). + /// The table name of Teradata. Type: string (or + /// Expression with resultType string). + public TeradataTableDataset(LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), object database = default(object), object table = default(object)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + Database = database; + Table = table; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the database name of Teradata. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.database")] + public object Database { get; set; } + + /// + /// Gets or sets the table name of Teradata. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.table")] + public object Table { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs new file mode 100644 index 000000000000..afb3bebe6aa9 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs @@ -0,0 +1,40 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataFactory +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_DataFactoryManagementClient + { + get + { + return new Tuple[] + { + new Tuple("DataFactory", "ActivityRuns", "2018-06-01"), + new Tuple("DataFactory", "Datasets", "2018-06-01"), + new Tuple("DataFactory", "ExposureControl", "2018-06-01"), + new Tuple("DataFactory", "Factories", "2018-06-01"), + new Tuple("DataFactory", "IntegrationRuntimeNodes", "2018-06-01"), + new Tuple("DataFactory", "IntegrationRuntimeObjectMetadata", "2018-06-01"), + new Tuple("DataFactory", "IntegrationRuntimes", "2018-06-01"), + new Tuple("DataFactory", "LinkedServices", "2018-06-01"), + new Tuple("DataFactory", "Operations", "2018-06-01"), + new Tuple("DataFactory", "PipelineRuns", "2018-06-01"), + new Tuple("DataFactory", "Pipelines", "2018-06-01"), + new Tuple("DataFactory", "RerunTriggers", "2018-06-01"), + new Tuple("DataFactory", "TriggerRuns", "2018-06-01"), + new Tuple("DataFactory", "Triggers", "2018-06-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj index f9f18bea8858..c7ee71da430e 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj @@ -5,11 +5,15 @@ Microsoft.Azure.Management.DataFactory Azure Data Factory V2 is the data integration platform that goes beyond Azure Data Factory V1's orchestration and batch-processing of time-series data, with a general purpose app model supporting modern data warehousing patterns and scenarios, lift-and-shift SSIS, and data-driven SaaS applications. Compose and manage reliable and secure data integration workflows at scale. Use native ADF data connectors and Integration Runtimes to move and transform cloud and on-premises data that can be unstructured, semi-structured, and structured with Hadoop, Azure Data Lake, Spark, SQL Server, Cosmos DB and many other data platforms. - 4.0.1 + 4.1.0 Microsoft.Azure.Management.DataFactory Microsoft Azure resource management;Data Factory;ADF; diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Properties/AssemblyInfo.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Properties/AssemblyInfo.cs index 968cbddb9651..a510e37c1599 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Properties/AssemblyInfo.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Properties/AssemblyInfo.cs @@ -6,8 +6,8 @@ [assembly: AssemblyTitle("Microsoft Azure Data Factory Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Data Factory Resources.")] -[assembly: AssemblyVersion("4.0.0.0")] -[assembly: AssemblyFileVersion("4.0.1.0")] +[assembly: AssemblyVersion("4.1.0.0")] +[assembly: AssemblyFileVersion("4.1.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/changelog.md b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/changelog.md index c92e9a7227d5..a3a11345f582 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/changelog.md +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/changelog.md @@ -2,7 +2,15 @@ ## Current version ### Feature Additions - - Added CopyTranslator.cs and TabularTranslator.cs to Extensions folder. + +## Version 4.1.0 +### Feature Additions +### Breaking Changes +- Fixed missing types CopyTranslator and TabularTranslator. +- Added support in Copy for AzureSqlMITable, DynamicsCrmEntity, CommonDataServiceForAppsEntity, TeradataTable, Binary, which inhcludes their Dataset, Linked Service, CopySource, and CopySink types +- Added TeradataTable CopySource support +- Added logLocation property to ExecuteSSISPackageActivity +- Added SSIS File system support by expanding SSISPackageLocation to support SSISDB and File location types ## Version 4.0.0 ### Feature Additions @@ -12,7 +20,7 @@ - Added support for parameterization to a number of properties - The table name is not required anymore for AzureSqlTable, AzureSqlDWTable, SqlServerTable - Added a new property dataProxyProperties to Integration Runtime -- Added new SapTable Linked Services type +- Added new SapTable Linked Services type - Added types for Read and Write Connector settings in activities - AzureBlobStorageReadSettings, AzureBlobFSReadSettings, AzureDataLakeStoreReadSettings, AmazonS3ReadSettings, FileServerReadSettings, FtpReadSettings, SftpReadSettings, HttpReadSettings, HdfsReadSettings, AzureBlobStorageWriteSettings, AzureBlobFSWriteSettings, AzureDataLakeStoreWriteSettings, FileServerWriteSettings, FormatReadSettings, DelimitedTextReadSettings, FormatWriteSettings, DelimitedTextWriteSettings - Added new Copy sources - SapTableSource, SqlServerSource, AzureSqlSource From 5e87280cc37668719fffbc77869f427fce2b82c2 Mon Sep 17 00:00:00 2001 From: Hao Qian Date: Wed, 25 Mar 2020 14:35:17 +0800 Subject: [PATCH 2/8] merge --- .../src/Microsoft.Azure.Management.DataFactory.csproj | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj index 77d467bd3c70..0235f06756e8 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj @@ -5,15 +5,6 @@ Microsoft.Azure.Management.DataFactory Azure Data Factory V2 is the data integration platform that goes beyond Azure Data Factory V1's orchestration and batch-processing of time-series data, with a general purpose app model supporting modern data warehousing patterns and scenarios, lift-and-shift SSIS, and data-driven SaaS applications. Compose and manage reliable and secure data integration workflows at scale. Use native ADF data connectors and Integration Runtimes to move and transform cloud and on-premises data that can be unstructured, semi-structured, and structured with Hadoop, Azure Data Lake, Spark, SQL Server, Cosmos DB and many other data platforms. - 4.1.0 - Microsoft.Azure.Management.DataFactory - Microsoft Azure resource management;Data Factory;ADF; - 4.1.4 Microsoft.Azure.Management.DataFactory Microsoft Azure resource management;Data Factory;ADF; From d95728d31172f032534008e9fc0e447ab4d9b908 Mon Sep 17 00:00:00 2001 From: Hao Qian Date: Wed, 25 Mar 2020 15:24:00 +0800 Subject: [PATCH 3/8] SSIS package store support --- .../IntegrationRuntimeSsisProperties.cs | 21 ++++- .../src/Generated/Models/PackageStore.cs | 78 +++++++++++++++++++ .../Generated/Models/SsisPackageLocation.cs | 74 +++++++++++++++--- .../Models/SsisPackageLocationType.cs | 2 + .../src/changelog.md | 2 +- 5 files changed, 165 insertions(+), 12 deletions(-) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PackageStore.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs index ce973fd96ae6..839739aad639 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs @@ -48,7 +48,9 @@ public IntegrationRuntimeSsisProperties() /// Possible values include: 'Standard', 'Enterprise' /// Custom setup without /// script properties for a SSIS integration runtime. - public IntegrationRuntimeSsisProperties(IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeSsisCatalogInfo catalogInfo = default(IntegrationRuntimeSsisCatalogInfo), string licenseType = default(string), IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties = default(IntegrationRuntimeCustomSetupScriptProperties), IntegrationRuntimeDataProxyProperties dataProxyProperties = default(IntegrationRuntimeDataProxyProperties), string edition = default(string), IList expressCustomSetupProperties = default(IList)) + /// Package stores for the SSIS Integration + /// Runtime. + public IntegrationRuntimeSsisProperties(IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeSsisCatalogInfo catalogInfo = default(IntegrationRuntimeSsisCatalogInfo), string licenseType = default(string), IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties = default(IntegrationRuntimeCustomSetupScriptProperties), IntegrationRuntimeDataProxyProperties dataProxyProperties = default(IntegrationRuntimeDataProxyProperties), string edition = default(string), IList expressCustomSetupProperties = default(IList), IList packageStores = default(IList)) { AdditionalProperties = additionalProperties; CatalogInfo = catalogInfo; @@ -57,6 +59,7 @@ public IntegrationRuntimeSsisProperties() DataProxyProperties = dataProxyProperties; Edition = edition; ExpressCustomSetupProperties = expressCustomSetupProperties; + PackageStores = packageStores; CustomInit(); } @@ -114,6 +117,12 @@ public IntegrationRuntimeSsisProperties() [JsonProperty(PropertyName = "expressCustomSetupProperties")] public IList ExpressCustomSetupProperties { get; set; } + /// + /// Gets or sets package stores for the SSIS Integration Runtime. + /// + [JsonProperty(PropertyName = "packageStores")] + public IList PackageStores { get; set; } + /// /// Validate the object. /// @@ -130,6 +139,16 @@ public virtual void Validate() { CustomSetupScriptProperties.Validate(); } + if (PackageStores != null) + { + foreach (var element in PackageStores) + { + if (element != null) + { + element.Validate(); + } + } + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PackageStore.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PackageStore.cs new file mode 100644 index 000000000000..2128cc4b7623 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PackageStore.cs @@ -0,0 +1,78 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Package store for the SSIS integration runtime. + /// + public partial class PackageStore + { + /// + /// Initializes a new instance of the PackageStore class. + /// + public PackageStore() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PackageStore class. + /// + /// The name of the package store + /// The package store linked + /// service reference. + public PackageStore(string name, EntityReference packageStoreLinkedService) + { + Name = name; + PackageStoreLinkedService = packageStoreLinkedService; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the package store + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the package store linked service reference. + /// + [JsonProperty(PropertyName = "packageStoreLinkedService")] + public EntityReference PackageStoreLinkedService { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (PackageStoreLinkedService == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PackageStoreLinkedService"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs index b15e46801a6d..0c6083576c94 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs @@ -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; /// @@ -35,20 +37,35 @@ public SSISPackageLocation() /// The SSIS package path. Type: string (or /// Expression with resultType string). /// The type of SSIS package location. Possible - /// values include: 'SSISDB', 'File' + /// values include: 'SSISDB', 'File', 'InlinePackage', + /// 'PackageStore' /// Password of the package. /// The package access /// credential. /// The configuration file of the /// package execution. Type: string (or Expression with resultType /// string). - public SSISPackageLocation(object packagePath, string type = default(string), SecureString packagePassword = default(SecureString), SSISAccessCredential accessCredential = default(SSISAccessCredential), object configurationPath = default(object)) + /// The configuration file + /// access credential. + /// The package name. + /// The embedded package content. Type: + /// string (or Expression with resultType string). + /// The embedded package last + /// modified date. + /// The embedded child package + /// list. + public SSISPackageLocation(object packagePath = default(object), string type = default(string), SecretBase packagePassword = default(SecretBase), SSISAccessCredential accessCredential = default(SSISAccessCredential), object configurationPath = default(object), SSISAccessCredential configurationAccessCredential = default(SSISAccessCredential), string packageName = default(string), object packageContent = default(object), string packageLastModifiedDate = default(string), IList childPackages = default(IList)) { PackagePath = packagePath; Type = type; PackagePassword = packagePassword; AccessCredential = accessCredential; ConfigurationPath = configurationPath; + ConfigurationAccessCredential = configurationAccessCredential; + PackageName = packageName; + PackageContent = packageContent; + PackageLastModifiedDate = packageLastModifiedDate; + ChildPackages = childPackages; CustomInit(); } @@ -66,7 +83,7 @@ public SSISPackageLocation() /// /// Gets or sets the type of SSIS package location. Possible values - /// include: 'SSISDB', 'File' + /// include: 'SSISDB', 'File', 'InlinePackage', 'PackageStore' /// [JsonProperty(PropertyName = "type")] public string Type { get; set; } @@ -75,7 +92,7 @@ public SSISPackageLocation() /// Gets or sets password of the package. /// [JsonProperty(PropertyName = "typeProperties.packagePassword")] - public SecureString PackagePassword { get; set; } + public SecretBase PackagePassword { get; set; } /// /// Gets or sets the package access credential. @@ -90,6 +107,37 @@ public SSISPackageLocation() [JsonProperty(PropertyName = "typeProperties.configurationPath")] public object ConfigurationPath { get; set; } + /// + /// Gets or sets the configuration file access credential. + /// + [JsonProperty(PropertyName = "typeProperties.configurationAccessCredential")] + public SSISAccessCredential ConfigurationAccessCredential { get; set; } + + /// + /// Gets or sets the package name. + /// + [JsonProperty(PropertyName = "typeProperties.packageName")] + public string PackageName { get; set; } + + /// + /// Gets or sets the embedded package content. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.packageContent")] + public object PackageContent { get; set; } + + /// + /// Gets or sets the embedded package last modified date. + /// + [JsonProperty(PropertyName = "typeProperties.packageLastModifiedDate")] + public string PackageLastModifiedDate { get; set; } + + /// + /// Gets or sets the embedded child package list. + /// + [JsonProperty(PropertyName = "typeProperties.childPackages")] + public IList ChildPackages { get; set; } + /// /// Validate the object. /// @@ -98,17 +146,23 @@ public SSISPackageLocation() /// public virtual void Validate() { - if (PackagePath == null) + if (AccessCredential != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "PackagePath"); + AccessCredential.Validate(); } - if (PackagePassword != null) + if (ConfigurationAccessCredential != null) { - PackagePassword.Validate(); + ConfigurationAccessCredential.Validate(); } - if (AccessCredential != null) + if (ChildPackages != null) { - AccessCredential.Validate(); + foreach (var element in ChildPackages) + { + if (element != null) + { + element.Validate(); + } + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocationType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocationType.cs index ad8eb8fdd96c..337f74c111a8 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocationType.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocationType.cs @@ -18,5 +18,7 @@ public static class SsisPackageLocationType { public const string SSISDB = "SSISDB"; public const string File = "File"; + public const string InlinePackage = "InlinePackage"; + public const string PackageStore = "PackageStore"; } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/changelog.md b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/changelog.md index 2983f67ba214..9a368d8a0b84 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/changelog.md +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/changelog.md @@ -5,7 +5,7 @@ - Added outputColumns property to Office365Source - Added support for ORC dataset in ADF - Added alternateKeyName property to DynamicsSink, DynamicsCrmSink and CommonDataServiceForAppsSinkCommonDataServiceForAppsSink - +- Added package store support for Azure-SSIS integration runtime ## Version 4.1.3 ### Feature Additions From dbbdf2da497614fab5c25249e3618d641145c6ff Mon Sep 17 00:00:00 2001 From: Hao Qian Date: Wed, 25 Mar 2020 15:30:07 +0800 Subject: [PATCH 4/8] SSIS package store support --- .../Generated/Models/SsisPackageLocation.cs | 55 +++---------------- 1 file changed, 9 insertions(+), 46 deletions(-) diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs index 0c6083576c94..f7288733ca04 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs @@ -47,14 +47,7 @@ public SSISPackageLocation() /// string). /// The configuration file /// access credential. - /// The package name. - /// The embedded package content. Type: - /// string (or Expression with resultType string). - /// The embedded package last - /// modified date. - /// The embedded child package - /// list. - public SSISPackageLocation(object packagePath = default(object), string type = default(string), SecretBase packagePassword = default(SecretBase), SSISAccessCredential accessCredential = default(SSISAccessCredential), object configurationPath = default(object), SSISAccessCredential configurationAccessCredential = default(SSISAccessCredential), string packageName = default(string), object packageContent = default(object), string packageLastModifiedDate = default(string), IList childPackages = default(IList)) + public SSISPackageLocation(object packagePath, string type = default(string), SecureString packagePassword = default(SecureString), SSISAccessCredential accessCredential = default(SSISAccessCredential), object configurationPath = default(object), SSISAccessCredential configurationAccessCredential = default(SSISAccessCredential)) { PackagePath = packagePath; Type = type; @@ -62,10 +55,6 @@ public SSISPackageLocation() AccessCredential = accessCredential; ConfigurationPath = configurationPath; ConfigurationAccessCredential = configurationAccessCredential; - PackageName = packageName; - PackageContent = packageContent; - PackageLastModifiedDate = packageLastModifiedDate; - ChildPackages = childPackages; CustomInit(); } @@ -113,30 +102,6 @@ public SSISPackageLocation() [JsonProperty(PropertyName = "typeProperties.configurationAccessCredential")] public SSISAccessCredential ConfigurationAccessCredential { get; set; } - /// - /// Gets or sets the package name. - /// - [JsonProperty(PropertyName = "typeProperties.packageName")] - public string PackageName { get; set; } - - /// - /// Gets or sets the embedded package content. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.packageContent")] - public object PackageContent { get; set; } - - /// - /// Gets or sets the embedded package last modified date. - /// - [JsonProperty(PropertyName = "typeProperties.packageLastModifiedDate")] - public string PackageLastModifiedDate { get; set; } - - /// - /// Gets or sets the embedded child package list. - /// - [JsonProperty(PropertyName = "typeProperties.childPackages")] - public IList ChildPackages { get; set; } /// /// Validate the object. @@ -146,6 +111,14 @@ public SSISPackageLocation() /// public virtual void Validate() { + if (PackagePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PackagePath"); + } + if (PackagePassword != null) + { + PackagePassword.Validate(); + } if (AccessCredential != null) { AccessCredential.Validate(); @@ -154,16 +127,6 @@ public virtual void Validate() { ConfigurationAccessCredential.Validate(); } - if (ChildPackages != null) - { - foreach (var element in ChildPackages) - { - if (element != null) - { - element.Validate(); - } - } - } } } } From d36518001187c6c44589d352300811e9d5113f81 Mon Sep 17 00:00:00 2001 From: Hao Qian Date: Wed, 25 Mar 2020 15:33:57 +0800 Subject: [PATCH 5/8] SSIS package store support --- .../src/Generated/Models/SsisPackageLocation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs index f7288733ca04..a8fbb3bce6a8 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs @@ -81,7 +81,7 @@ public SSISPackageLocation() /// Gets or sets password of the package. /// [JsonProperty(PropertyName = "typeProperties.packagePassword")] - public SecretBase PackagePassword { get; set; } + public SecureString PackagePassword { get; set; } /// /// Gets or sets the package access credential. @@ -118,7 +118,7 @@ public virtual void Validate() if (PackagePassword != null) { PackagePassword.Validate(); - } + } if (AccessCredential != null) { AccessCredential.Validate(); From 4c7fa4f5cab0ae3c6d2d47e550ec259c5ebe683b Mon Sep 17 00:00:00 2001 From: Hao Qian Date: Wed, 25 Mar 2020 15:50:28 +0800 Subject: [PATCH 6/8] merge --- .../DataFlowDebugSessionOperations.cs | 1480 +++++++++++++++++ ...ataFlowDebugSessionOperationsExtensions.cs | 372 +++++ .../src/Generated/DataFlowsOperations.cs | 1227 ++++++++++++++ .../DataFlowsOperationsExtensions.cs | 258 +++ .../IDataFlowDebugSessionOperations.cs | 239 +++ .../src/Generated/IDataFlowsOperations.cs | 168 ++ .../AddDataFlowToDebugSessionResponse.cs | 54 + .../src/Generated/Models/AdditionalColumns.cs | 63 + .../Models/AzureFileStorageLinkedService.cs | 114 ++ .../Models/AzureFileStorageLocation.cs | 51 + .../Models/AzureFileStorageReadSettings.cs | 130 ++ .../Models/AzureMLExecutePipelineActivity.cs | 145 ++ .../Models/AzureMLServiceLinkedService.cs | 162 ++ .../Models/CosmosDbSqlApiCollectionDataset.cs | 92 + .../Generated/Models/CosmosDbSqlApiSink.cs | 73 + .../Generated/Models/CosmosDbSqlApiSource.cs | 98 ++ .../CreateDataFlowDebugSessionRequest.cs | 99 ++ .../CreateDataFlowDebugSessionResponse.cs | 61 + .../Models/DWCopyCommandDefaultValue.cs | 63 + .../Generated/Models/DWCopyCommandSettings.cs | 76 + .../src/Generated/Models/DataFlow.cs | 74 + .../Generated/Models/DataFlowComputeType.cs | 23 + .../Models/DataFlowDebugCommandPayload.cs | 95 ++ .../Models/DataFlowDebugCommandRequest.cs | 86 + .../Models/DataFlowDebugCommandResponse.cs | 66 + .../Models/DataFlowDebugCommandType.cs | 23 + .../Generated/Models/DataFlowDebugPackage.cs | 140 ++ .../DataFlowDebugPackageDebugSettings.cs | 72 + .../Generated/Models/DataFlowDebugResource.cs | 67 + .../DataFlowDebugSessionCreateHeaders.cs | 54 + ...taFlowDebugSessionExecuteCommandHeaders.cs | 54 + .../Models/DataFlowDebugSessionInfo.cs | 133 ++ .../src/Generated/Models/DataFlowFolder.cs | 53 + .../src/Generated/Models/DataFlowReference.cs | 99 ++ .../src/Generated/Models/DataFlowResource.cs | 70 + .../src/Generated/Models/DataFlowSink.cs | 68 + .../src/Generated/Models/DataFlowSource.cs | 68 + .../Generated/Models/DataFlowSourceSetting.cs | 72 + .../Generated/Models/DataFlowStagingInfo.cs | 73 + .../Generated/Models/DatasetDebugResource.cs | 72 + .../DeleteDataFlowDebugSessionRequest.cs | 53 + .../Models/ExecuteDataFlowActivity.cs | 120 ++ ...teDataFlowActivityTypePropertiesCompute.cs | 68 + .../src/Generated/Models/ExportSettings.cs | 55 + .../GetDataFactoryOperationStatusResponse.cs | 65 + .../Models/GoogleCloudStorageLinkedService.cs | 120 ++ .../Models/GoogleCloudStorageLocation.cs | 73 + .../Models/GoogleCloudStorageReadSettings.cs | 142 ++ .../src/Generated/Models/ImportSettings.cs | 55 + .../IntegrationRuntimeDataFlowProperties.cs | 104 ++ .../Models/IntegrationRuntimeDebugResource.cs | 69 + .../Models/LinkedServiceDebugResource.cs | 72 + .../src/Generated/Models/MappingDataFlow.cs | 87 + .../Generated/Models/OrcCompressionCodec.cs | 23 + .../src/Generated/Models/SSISChildPackage.cs | 98 ++ .../Models/SapHanaPartitionOption.cs | 23 + .../Models/SapHanaPartitionSettings.cs | 55 + .../src/Generated/Models/SftpWriteSettings.cs | 78 + .../src/Generated/Models/SkipErrorFile.cs | 67 + .../src/Generated/Models/SnowflakeDataset.cs | 97 ++ .../Models/SnowflakeExportCopyCommand.cs | 80 + .../Models/SnowflakeImportCopyCommand.cs | 80 + .../Models/SnowflakeLinkedService.cs | 108 ++ .../src/Generated/Models/SnowflakeSink.cs | 79 + .../src/Generated/Models/SnowflakeSource.cs | 74 + .../Models/SubResourceDebugResource.cs | 51 + .../src/Generated/Models/SwitchActivity.cs | 125 ++ .../src/Generated/Models/SwitchCase.cs | 65 + .../src/Generated/Models/TabularSource.cs | 80 + .../src/Generated/Models/Transformation.cs | 73 + .../Models/TriggerFilterParameters.cs | 63 + .../Generated/Models/TriggerQueryResponse.cs | 88 + 72 files changed, 8977 insertions(+) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperations.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperationsExtensions.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowsOperations.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowsOperationsExtensions.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/IDataFlowDebugSessionOperations.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/IDataFlowsOperations.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AddDataFlowToDebugSessionResponse.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AdditionalColumns.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageLocation.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageReadSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiCollectionDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CreateDataFlowDebugSessionRequest.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CreateDataFlowDebugSessionResponse.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DWCopyCommandDefaultValue.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DWCopyCommandSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlow.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowComputeType.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandPayload.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandRequest.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandResponse.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandType.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackage.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugResource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionCreateHeaders.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionExecuteCommandHeaders.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowFolder.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowReference.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowResource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSourceSetting.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowStagingInfo.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDebugResource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DeleteDataFlowDebugSessionRequest.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExportSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GetDataFactoryOperationStatusResponse.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageLocation.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageReadSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ImportSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDebugResource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/LinkedServiceDebugResource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MappingDataFlow.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OrcCompressionCodec.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISChildPackage.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapHanaPartitionOption.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapHanaPartitionSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SftpWriteSettings.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SkipErrorFile.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeDataset.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeExportCopyCommand.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeImportCopyCommand.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeLinkedService.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeSink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SubResourceDebugResource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SwitchActivity.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SwitchCase.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TabularSource.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Transformation.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerFilterParameters.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerQueryResponse.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperations.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperations.cs new file mode 100644 index 000000000000..b19a93009132 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperations.cs @@ -0,0 +1,1480 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DataFlowDebugSessionOperations operations. + /// + internal partial class DataFlowDebugSessionOperations : IServiceOperations, IDataFlowDebugSessionOperations + { + /// + /// Initializes a new instance of the DataFlowDebugSessionOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DataFlowDebugSessionOperations(DataFactoryManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataFactoryManagementClient + /// + public DataFactoryManagementClient Client { get; private set; } + + /// + /// Creates a data flow debug session. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, factoryName, request, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Query all active data flow debug sessions. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> QueryByFactoryWithHttpMessagesAsync(string resourceGroupName, string factoryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "QueryByFactory", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryDataFlowDebugSessions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Add a data flow into debug session. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition with debug content. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> AddDataFlowWithHttpMessagesAsync(string resourceGroupName, string factoryName, DataFlowDebugPackage request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (request == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "request"); + } + if (request != null) + { + request.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("request", request); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "AddDataFlow", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/addDataFlowToDebugSession").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(request != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a data flow debug session. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition for deletion + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string factoryName, DeleteDataFlowDebugSessionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (request == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "request"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("request", request); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/deleteDataFlowDebugSession").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(request != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Execute a data flow debug command. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug command definition. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ExecuteCommandWithHttpMessagesAsync(string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExecuteCommandWithHttpMessagesAsync(resourceGroupName, factoryName, request, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a data flow debug session. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (request == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "request"); + } + if (request != null) + { + request.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("request", request); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(request != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Execute a data flow debug command. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug command definition. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginExecuteCommandWithHttpMessagesAsync(string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (request == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "request"); + } + if (request != null) + { + request.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("request", request); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginExecuteCommand", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(request != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Query all active data flow debug sessions. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> QueryByFactoryNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "QueryByFactoryNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperationsExtensions.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperationsExtensions.cs new file mode 100644 index 000000000000..82916fb8fa44 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperationsExtensions.cs @@ -0,0 +1,372 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DataFlowDebugSessionOperations. + /// + public static partial class DataFlowDebugSessionOperationsExtensions + { + /// + /// Creates a data flow debug session. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition + /// + public static CreateDataFlowDebugSessionResponse Create(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request) + { + return operations.CreateAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); + } + + /// + /// Creates a data flow debug session. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Query all active data flow debug sessions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + public static IPage QueryByFactory(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName) + { + return operations.QueryByFactoryAsync(resourceGroupName, factoryName).GetAwaiter().GetResult(); + } + + /// + /// Query all active data flow debug sessions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The cancellation token. + /// + public static async Task> QueryByFactoryAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.QueryByFactoryWithHttpMessagesAsync(resourceGroupName, factoryName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Add a data flow into debug session. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition with debug content. + /// + public static AddDataFlowToDebugSessionResponse AddDataFlow(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugPackage request) + { + return operations.AddDataFlowAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); + } + + /// + /// Add a data flow into debug session. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition with debug content. + /// + /// + /// The cancellation token. + /// + public static async Task AddDataFlowAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugPackage request, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AddDataFlowWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a data flow debug session. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition for deletion + /// + public static void Delete(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DeleteDataFlowDebugSessionRequest request) + { + operations.DeleteAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); + } + + /// + /// Deletes a data flow debug session. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition for deletion + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DeleteDataFlowDebugSessionRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Execute a data flow debug command. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug command definition. + /// + public static DataFlowDebugCommandResponse ExecuteCommand(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request) + { + return operations.ExecuteCommandAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); + } + + /// + /// Execute a data flow debug command. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug command definition. + /// + /// + /// The cancellation token. + /// + public static async Task ExecuteCommandAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExecuteCommandWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a data flow debug session. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition + /// + public static CreateDataFlowDebugSessionResponse BeginCreate(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request) + { + return operations.BeginCreateAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); + } + + /// + /// Creates a data flow debug session. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Execute a data flow debug command. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug command definition. + /// + public static DataFlowDebugCommandResponse BeginExecuteCommand(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request) + { + return operations.BeginExecuteCommandAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); + } + + /// + /// Execute a data flow debug command. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug command definition. + /// + /// + /// The cancellation token. + /// + public static async Task BeginExecuteCommandAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginExecuteCommandWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Query all active data flow debug sessions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage QueryByFactoryNext(this IDataFlowDebugSessionOperations operations, string nextPageLink) + { + return operations.QueryByFactoryNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Query all active data flow debug sessions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> QueryByFactoryNextAsync(this IDataFlowDebugSessionOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.QueryByFactoryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowsOperations.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowsOperations.cs new file mode 100644 index 000000000000..6fa599d78b4b --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowsOperations.cs @@ -0,0 +1,1227 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DataFlowsOperations operations. + /// + internal partial class DataFlowsOperations : IServiceOperations, IDataFlowsOperations + { + /// + /// Initializes a new instance of the DataFlowsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DataFlowsOperations(DataFactoryManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataFactoryManagementClient + /// + public DataFactoryManagementClient Client { get; private set; } + + /// + /// Creates or updates a data flow. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// Data flow resource definition. + /// + /// + /// ETag of the data flow entity. Should only be specified for update, for + /// which it should match existing entity or can be * for unconditional update. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string factoryName, string dataFlowName, DataFlowResource dataFlow, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (dataFlowName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataFlowName"); + } + if (dataFlowName != null) + { + if (dataFlowName.Length > 260) + { + throw new ValidationException(ValidationRules.MaxLength, "dataFlowName", 260); + } + if (dataFlowName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "dataFlowName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(dataFlowName, "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "dataFlowName", "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (dataFlow == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataFlow"); + } + if (dataFlow != null) + { + dataFlow.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("dataFlowName", dataFlowName); + tracingParameters.Add("ifMatch", ifMatch); + tracingParameters.Add("dataFlow", dataFlow); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + _url = _url.Replace("{dataFlowName}", System.Uri.EscapeDataString(dataFlowName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(dataFlow != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(dataFlow, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a data flow. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// ETag of the data flow entity. Should only be specified for get. If the ETag + /// matches the existing entity tag, or if * was provided, then no content will + /// be returned. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string factoryName, string dataFlowName, string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (dataFlowName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataFlowName"); + } + if (dataFlowName != null) + { + if (dataFlowName.Length > 260) + { + throw new ValidationException(ValidationRules.MaxLength, "dataFlowName", 260); + } + if (dataFlowName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "dataFlowName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(dataFlowName, "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "dataFlowName", "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("dataFlowName", dataFlowName); + tracingParameters.Add("ifNoneMatch", ifNoneMatch); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + _url = _url.Replace("{dataFlowName}", System.Uri.EscapeDataString(dataFlowName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (ifNoneMatch != null) + { + if (_httpRequest.Headers.Contains("If-None-Match")) + { + _httpRequest.Headers.Remove("If-None-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-None-Match", ifNoneMatch); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a data flow. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string factoryName, string dataFlowName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (dataFlowName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataFlowName"); + } + if (dataFlowName != null) + { + if (dataFlowName.Length > 260) + { + throw new ValidationException(ValidationRules.MaxLength, "dataFlowName", 260); + } + if (dataFlowName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "dataFlowName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(dataFlowName, "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "dataFlowName", "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("dataFlowName", dataFlowName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + _url = _url.Replace("{dataFlowName}", System.Uri.EscapeDataString(dataFlowName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists data flows. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByFactoryWithHttpMessagesAsync(string resourceGroupName, string factoryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new ValidationException(ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByFactory", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists data flows. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByFactoryNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByFactoryNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowsOperationsExtensions.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowsOperationsExtensions.cs new file mode 100644 index 000000000000..b9128218a2f8 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowsOperationsExtensions.cs @@ -0,0 +1,258 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DataFlowsOperations. + /// + public static partial class DataFlowsOperationsExtensions + { + /// + /// Creates or updates a data flow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// Data flow resource definition. + /// + /// + /// ETag of the data flow entity. Should only be specified for update, for + /// which it should match existing entity or can be * for unconditional update. + /// + public static DataFlowResource CreateOrUpdate(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, DataFlowResource dataFlow, string ifMatch = default(string)) + { + return operations.CreateOrUpdateAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a data flow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// Data flow resource definition. + /// + /// + /// ETag of the data flow entity. Should only be specified for update, for + /// which it should match existing entity or can be * for unconditional update. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, DataFlowResource dataFlow, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a data flow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// ETag of the data flow entity. Should only be specified for get. If the ETag + /// matches the existing entity tag, or if * was provided, then no content will + /// be returned. + /// + public static DataFlowResource Get(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, string ifNoneMatch = default(string)) + { + return operations.GetAsync(resourceGroupName, factoryName, dataFlowName, ifNoneMatch).GetAwaiter().GetResult(); + } + + /// + /// Gets a data flow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// ETag of the data flow entity. Should only be specified for get. If the ETag + /// matches the existing entity tag, or if * was provided, then no content will + /// be returned. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, factoryName, dataFlowName, ifNoneMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a data flow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + public static void Delete(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName) + { + operations.DeleteAsync(resourceGroupName, factoryName, dataFlowName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a data flow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, factoryName, dataFlowName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists data flows. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + public static IPage ListByFactory(this IDataFlowsOperations operations, string resourceGroupName, string factoryName) + { + return operations.ListByFactoryAsync(resourceGroupName, factoryName).GetAwaiter().GetResult(); + } + + /// + /// Lists data flows. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByFactoryAsync(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByFactoryWithHttpMessagesAsync(resourceGroupName, factoryName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists data flows. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByFactoryNext(this IDataFlowsOperations operations, string nextPageLink) + { + return operations.ListByFactoryNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists data flows. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByFactoryNextAsync(this IDataFlowsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByFactoryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/IDataFlowDebugSessionOperations.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/IDataFlowDebugSessionOperations.cs new file mode 100644 index 000000000000..b62b52cf78f6 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/IDataFlowDebugSessionOperations.cs @@ -0,0 +1,239 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DataFlowDebugSessionOperations operations. + /// + public partial interface IDataFlowDebugSessionOperations + { + /// + /// Creates a data flow debug session. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Query all active data flow debug sessions. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> QueryByFactoryWithHttpMessagesAsync(string resourceGroupName, string factoryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Add a data flow into debug session. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition with debug content. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> AddDataFlowWithHttpMessagesAsync(string resourceGroupName, string factoryName, DataFlowDebugPackage request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a data flow debug session. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition for deletion + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string factoryName, DeleteDataFlowDebugSessionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Execute a data flow debug command. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug command definition. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExecuteCommandWithHttpMessagesAsync(string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a data flow debug session. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug session definition + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Execute a data flow debug command. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// Data flow debug command definition. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginExecuteCommandWithHttpMessagesAsync(string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Query all active data flow debug sessions. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> QueryByFactoryNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/IDataFlowsOperations.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/IDataFlowsOperations.cs new file mode 100644 index 000000000000..9d1e9bf3f49c --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/IDataFlowsOperations.cs @@ -0,0 +1,168 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DataFlowsOperations operations. + /// + public partial interface IDataFlowsOperations + { + /// + /// Creates or updates a data flow. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// Data flow resource definition. + /// + /// + /// ETag of the data flow entity. Should only be specified for update, + /// for which it should match existing entity or can be * for + /// unconditional update. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string factoryName, string dataFlowName, DataFlowResource dataFlow, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a data flow. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// ETag of the data flow entity. Should only be specified for get. If + /// the ETag matches the existing entity tag, or if * was provided, + /// then no content will be returned. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string factoryName, string dataFlowName, string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a data flow. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The data flow name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string factoryName, string dataFlowName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists data flows. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByFactoryWithHttpMessagesAsync(string resourceGroupName, string factoryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists data flows. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByFactoryNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AddDataFlowToDebugSessionResponse.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AddDataFlowToDebugSessionResponse.cs new file mode 100644 index 000000000000..efbe4ecfdf4d --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AddDataFlowToDebugSessionResponse.cs @@ -0,0 +1,54 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Response body structure for starting data flow debug session. + /// + public partial class AddDataFlowToDebugSessionResponse + { + /// + /// Initializes a new instance of the AddDataFlowToDebugSessionResponse + /// class. + /// + public AddDataFlowToDebugSessionResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AddDataFlowToDebugSessionResponse + /// class. + /// + /// The ID of data flow debug job + /// version. + public AddDataFlowToDebugSessionResponse(string jobVersion = default(string)) + { + JobVersion = jobVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of data flow debug job version. + /// + [JsonProperty(PropertyName = "jobVersion")] + public string JobVersion { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AdditionalColumns.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AdditionalColumns.cs new file mode 100644 index 000000000000..d4079785c195 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AdditionalColumns.cs @@ -0,0 +1,63 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Specify the column name and value of additional columns. + /// + public partial class AdditionalColumns + { + /// + /// Initializes a new instance of the AdditionalColumns class. + /// + public AdditionalColumns() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AdditionalColumns class. + /// + /// Additional column name. Type: string (or + /// Expression with resultType string). + /// Additional column value. Type: string (or + /// Expression with resultType string). + public AdditionalColumns(object name = default(object), object value = default(object)) + { + Name = name; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets additional column name. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "name")] + public object Name { get; set; } + + /// + /// Gets or sets additional column value. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "value")] + public object Value { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.cs new file mode 100644 index 000000000000..dae5ead4808f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.cs @@ -0,0 +1,114 @@ +// +// 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. +// + +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; + + /// + /// Azure File Storage linked service. + /// + [Newtonsoft.Json.JsonObject("AzureFileStorage")] + [Rest.Serialization.JsonTransformation] + public partial class AzureFileStorageLinkedService : LinkedService + { + /// + /// Initializes a new instance of the AzureFileStorageLinkedService + /// class. + /// + public AzureFileStorageLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureFileStorageLinkedService + /// class. + /// + /// Host name of the server. Type: string (or + /// Expression with resultType string). + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// User ID to logon the server. Type: string (or + /// Expression with resultType string). + /// Password to logon the server. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public AzureFileStorageLinkedService(object host, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object userId = default(object), SecretBase password = default(SecretBase), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + Host = host; + UserId = userId; + Password = password; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets host name of the server. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.host")] + public object Host { get; set; } + + /// + /// Gets or sets user ID to logon the server. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.userId")] + public object UserId { get; set; } + + /// + /// Gets or sets password to logon the server. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Host == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Host"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageLocation.cs new file mode 100644 index 000000000000..beac26fc6656 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageLocation.cs @@ -0,0 +1,51 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The location of file server dataset. + /// + public partial class AzureFileStorageLocation : DatasetLocation + { + /// + /// Initializes a new instance of the AzureFileStorageLocation class. + /// + public AzureFileStorageLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureFileStorageLocation class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Specify the folder path of dataset. Type: + /// string (or Expression with resultType string) + /// Specify the file name of dataset. Type: + /// string (or Expression with resultType string). + public AzureFileStorageLocation(IDictionary additionalProperties = default(IDictionary), object folderPath = default(object), object fileName = default(object)) + : base(additionalProperties, folderPath, fileName) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageReadSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageReadSettings.cs new file mode 100644 index 000000000000..7ac6d4991c95 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureFileStorageReadSettings.cs @@ -0,0 +1,130 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Azure File Storage read settings. + /// + public partial class AzureFileStorageReadSettings : StoreReadSettings + { + /// + /// Initializes a new instance of the AzureFileStorageReadSettings + /// class. + /// + public AzureFileStorageReadSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureFileStorageReadSettings + /// class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// If true, files under the folder path will + /// be read recursively. Default is true. Type: boolean (or Expression + /// with resultType boolean). + /// Azure File Storage + /// wildcardFolderPath. Type: string (or Expression with resultType + /// string). + /// Azure File Storage wildcardFileName. + /// Type: string (or Expression with resultType string). + /// Point to a text file that lists each + /// file (relative path to the path configured in the dataset) that you + /// want to copy. Type: string (or Expression with resultType + /// string). + /// Indicates whether to enable + /// partition discovery. + /// The start of file's modified + /// datetime. Type: string (or Expression with resultType + /// string). + /// The end of file's modified + /// datetime. Type: string (or Expression with resultType + /// string). + public AzureFileStorageReadSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object recursive = default(object), object wildcardFolderPath = default(object), object wildcardFileName = default(object), object fileListPath = default(object), bool? enablePartitionDiscovery = default(bool?), object modifiedDatetimeStart = default(object), object modifiedDatetimeEnd = default(object)) + : base(additionalProperties, maxConcurrentConnections) + { + Recursive = recursive; + WildcardFolderPath = wildcardFolderPath; + WildcardFileName = wildcardFileName; + FileListPath = fileListPath; + EnablePartitionDiscovery = enablePartitionDiscovery; + ModifiedDatetimeStart = modifiedDatetimeStart; + ModifiedDatetimeEnd = modifiedDatetimeEnd; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets if true, files under the folder path will be read + /// recursively. Default is true. Type: boolean (or Expression with + /// resultType boolean). + /// + [JsonProperty(PropertyName = "recursive")] + public object Recursive { get; set; } + + /// + /// Gets or sets azure File Storage wildcardFolderPath. Type: string + /// (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "wildcardFolderPath")] + public object WildcardFolderPath { get; set; } + + /// + /// Gets or sets azure File Storage wildcardFileName. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "wildcardFileName")] + public object WildcardFileName { get; set; } + + /// + /// Gets or sets point to a text file that lists each file (relative + /// path to the path configured in the dataset) that you want to copy. + /// Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "fileListPath")] + public object FileListPath { get; set; } + + /// + /// Gets or sets indicates whether to enable partition discovery. + /// + [JsonProperty(PropertyName = "enablePartitionDiscovery")] + public bool? EnablePartitionDiscovery { get; set; } + + /// + /// Gets or sets the start of file's modified datetime. Type: string + /// (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "modifiedDatetimeStart")] + public object ModifiedDatetimeStart { get; set; } + + /// + /// Gets or sets the end of file's modified datetime. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "modifiedDatetimeEnd")] + public object ModifiedDatetimeEnd { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.cs new file mode 100644 index 000000000000..46c97bd2849b --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.cs @@ -0,0 +1,145 @@ +// +// 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. +// + +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; + + /// + /// Azure ML Execute Pipeline activity. + /// + [Newtonsoft.Json.JsonObject("AzureMLExecutePipeline")] + [Rest.Serialization.JsonTransformation] + public partial class AzureMLExecutePipelineActivity : ExecutionActivity + { + /// + /// Initializes a new instance of the AzureMLExecutePipelineActivity + /// class. + /// + public AzureMLExecutePipelineActivity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureMLExecutePipelineActivity + /// class. + /// + /// Activity name. + /// ID of the published Azure ML pipeline. + /// Type: string (or Expression with resultType string). + /// Unmatched properties from the + /// message are deserialized this collection + /// Activity description. + /// Activity depends on condition. + /// Activity user properties. + /// Linked service reference. + /// Activity policy. + /// Run history experiment name of the + /// pipeline run. This information will be passed in the ExperimentName + /// property of the published pipeline execution request. Type: string + /// (or Expression with resultType string). + /// Key,Value pairs to be passed to + /// the published Azure ML pipeline endpoint. Keys must match the names + /// of pipeline parameters defined in the published pipeline. Values + /// will be passed in the ParameterAssignments property of the + /// published pipeline execution request. Type: object with key value + /// pairs (or Expression with resultType object). + /// The parent Azure ML Service pipeline + /// run id. This information will be passed in the ParentRunId property + /// of the published pipeline execution request. Type: string (or + /// Expression with resultType string). + /// Whether to continue execution + /// of other steps in the PipelineRun if a step fails. This information + /// will be passed in the continueOnStepFailure property of the + /// published pipeline execution request. Type: boolean (or Expression + /// with resultType boolean). + public AzureMLExecutePipelineActivity(string name, object mlPipelineId, IDictionary additionalProperties = default(IDictionary), string description = default(string), IList dependsOn = default(IList), IList userProperties = default(IList), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), object experimentName = default(object), object mlPipelineParameters = default(object), object mlParentRunId = default(object), object continueOnStepFailure = default(object)) + : base(name, additionalProperties, description, dependsOn, userProperties, linkedServiceName, policy) + { + MlPipelineId = mlPipelineId; + ExperimentName = experimentName; + MlPipelineParameters = mlPipelineParameters; + MlParentRunId = mlParentRunId; + ContinueOnStepFailure = continueOnStepFailure; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets ID of the published Azure ML pipeline. Type: string + /// (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.mlPipelineId")] + public object MlPipelineId { get; set; } + + /// + /// Gets or sets run history experiment name of the pipeline run. This + /// information will be passed in the ExperimentName property of the + /// published pipeline execution request. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.experimentName")] + public object ExperimentName { get; set; } + + /// + /// Gets or sets key,Value pairs to be passed to the published Azure ML + /// pipeline endpoint. Keys must match the names of pipeline parameters + /// defined in the published pipeline. Values will be passed in the + /// ParameterAssignments property of the published pipeline execution + /// request. Type: object with key value pairs (or Expression with + /// resultType object). + /// + [JsonProperty(PropertyName = "typeProperties.mlPipelineParameters")] + public object MlPipelineParameters { get; set; } + + /// + /// Gets or sets the parent Azure ML Service pipeline run id. This + /// information will be passed in the ParentRunId property of the + /// published pipeline execution request. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.mlParentRunId")] + public object MlParentRunId { get; set; } + + /// + /// Gets or sets whether to continue execution of other steps in the + /// PipelineRun if a step fails. This information will be passed in the + /// continueOnStepFailure property of the published pipeline execution + /// request. Type: boolean (or Expression with resultType boolean). + /// + [JsonProperty(PropertyName = "typeProperties.continueOnStepFailure")] + public object ContinueOnStepFailure { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (MlPipelineId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MlPipelineId"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.cs new file mode 100644 index 000000000000..e321526e5433 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.cs @@ -0,0 +1,162 @@ +// +// 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. +// + +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; + + /// + /// Azure ML Service linked service. + /// + [Newtonsoft.Json.JsonObject("AzureMLService")] + [Rest.Serialization.JsonTransformation] + public partial class AzureMLServiceLinkedService : LinkedService + { + /// + /// Initializes a new instance of the AzureMLServiceLinkedService + /// class. + /// + public AzureMLServiceLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureMLServiceLinkedService + /// class. + /// + /// Azure ML Service workspace + /// subscription ID. Type: string (or Expression with resultType + /// string). + /// Azure ML Service workspace resource + /// group name. Type: string (or Expression with resultType + /// string). + /// Azure ML Service workspace name. + /// Type: string (or Expression with resultType string). + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The ID of the service principal + /// used to authenticate against the endpoint of a published Azure ML + /// Service pipeline. Type: string (or Expression with resultType + /// string). + /// The key of the service principal + /// used to authenticate against the endpoint of a published Azure ML + /// Service pipeline. + /// The name or ID of the tenant to which the + /// service principal belongs. Type: string (or Expression with + /// resultType string). + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public AzureMLServiceLinkedService(object subscriptionId, object resourceGroupName, object mlWorkspaceName, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), object tenant = default(object), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + SubscriptionId = subscriptionId; + ResourceGroupName = resourceGroupName; + MlWorkspaceName = mlWorkspaceName; + ServicePrincipalId = servicePrincipalId; + ServicePrincipalKey = servicePrincipalKey; + Tenant = tenant; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets azure ML Service workspace subscription ID. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.subscriptionId")] + public object SubscriptionId { get; set; } + + /// + /// Gets or sets azure ML Service workspace resource group name. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.resourceGroupName")] + public object ResourceGroupName { get; set; } + + /// + /// Gets or sets azure ML Service workspace name. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.mlWorkspaceName")] + public object MlWorkspaceName { get; set; } + + /// + /// Gets or sets the ID of the service principal used to authenticate + /// against the endpoint of a published Azure ML Service pipeline. + /// Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] + public object ServicePrincipalId { get; set; } + + /// + /// Gets or sets the key of the service principal used to authenticate + /// against the endpoint of a published Azure ML Service pipeline. + /// + [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] + public SecretBase ServicePrincipalKey { get; set; } + + /// + /// Gets or sets the name or ID of the tenant to which the service + /// principal belongs. Type: string (or Expression with resultType + /// string). + /// + [JsonProperty(PropertyName = "typeProperties.tenant")] + public object Tenant { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SubscriptionId"); + } + if (ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ResourceGroupName"); + } + if (MlWorkspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MlWorkspaceName"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiCollectionDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiCollectionDataset.cs new file mode 100644 index 000000000000..7e787f7f1263 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiCollectionDataset.cs @@ -0,0 +1,92 @@ +// +// 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. +// + +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; + + /// + /// Microsoft Azure CosmosDB (SQL API) Collection dataset. + /// + [Newtonsoft.Json.JsonObject("CosmosDbSqlApiCollection")] + [Rest.Serialization.JsonTransformation] + public partial class CosmosDbSqlApiCollectionDataset : Dataset + { + /// + /// Initializes a new instance of the CosmosDbSqlApiCollectionDataset + /// class. + /// + public CosmosDbSqlApiCollectionDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the CosmosDbSqlApiCollectionDataset + /// class. + /// + /// Linked service reference. + /// CosmosDB (SQL API) collection name. + /// Type: string (or Expression with resultType string). + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + public CosmosDbSqlApiCollectionDataset(LinkedServiceReference linkedServiceName, object collectionName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + CollectionName = collectionName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets cosmosDB (SQL API) collection name. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.collectionName")] + public object CollectionName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (CollectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "CollectionName"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiSink.cs new file mode 100644 index 000000000000..a6f5bf1acc86 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiSink.cs @@ -0,0 +1,73 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Azure CosmosDB (SQL API) Collection sink. + /// + public partial class CosmosDbSqlApiSink : CopySink + { + /// + /// Initializes a new instance of the CosmosDbSqlApiSink class. + /// + public CosmosDbSqlApiSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CosmosDbSqlApiSink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// Describes how to write data to Azure + /// Cosmos DB. Type: string (or Expression with resultType string). + /// Allowed values: insert and upsert. + public CosmosDbSqlApiSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object writeBehavior = default(object)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + WriteBehavior = writeBehavior; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets describes how to write data to Azure Cosmos DB. Type: + /// string (or Expression with resultType string). Allowed values: + /// insert and upsert. + /// + [JsonProperty(PropertyName = "writeBehavior")] + public object WriteBehavior { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiSource.cs new file mode 100644 index 000000000000..19f4c02b6a24 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CosmosDbSqlApiSource.cs @@ -0,0 +1,98 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity Azure CosmosDB (SQL API) Collection source. + /// + public partial class CosmosDbSqlApiSource : CopySource + { + /// + /// Initializes a new instance of the CosmosDbSqlApiSource class. + /// + public CosmosDbSqlApiSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CosmosDbSqlApiSource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// SQL API query. Type: string (or Expression with + /// resultType string). + /// Page size of the result. Type: integer (or + /// Expression with resultType integer). + /// Preferred regions. Type: array of + /// strings (or Expression with resultType array of strings). + /// Specifies the additional columns to + /// be added to source data. Type: array of objects (or Expression with + /// resultType array of objects). + public CosmosDbSqlApiSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object query = default(object), object pageSize = default(object), object preferredRegions = default(object), IList additionalColumns = default(IList)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + Query = query; + PageSize = pageSize; + PreferredRegions = preferredRegions; + AdditionalColumns = additionalColumns; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SQL API query. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "query")] + public object Query { get; set; } + + /// + /// Gets or sets page size of the result. Type: integer (or Expression + /// with resultType integer). + /// + [JsonProperty(PropertyName = "pageSize")] + public object PageSize { get; set; } + + /// + /// Gets or sets preferred regions. Type: array of strings (or + /// Expression with resultType array of strings). + /// + [JsonProperty(PropertyName = "preferredRegions")] + public object PreferredRegions { get; set; } + + /// + /// Gets or sets specifies the additional columns to be added to source + /// data. Type: array of objects (or Expression with resultType array + /// of objects). + /// + [JsonProperty(PropertyName = "additionalColumns")] + public IList AdditionalColumns { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CreateDataFlowDebugSessionRequest.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CreateDataFlowDebugSessionRequest.cs new file mode 100644 index 000000000000..d3dded7f90f4 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CreateDataFlowDebugSessionRequest.cs @@ -0,0 +1,99 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Request body structure for creating data flow debug session. + /// + public partial class CreateDataFlowDebugSessionRequest + { + /// + /// Initializes a new instance of the CreateDataFlowDebugSessionRequest + /// class. + /// + public CreateDataFlowDebugSessionRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CreateDataFlowDebugSessionRequest + /// class. + /// + /// Compute type of the cluster. The value + /// will be overwritten by the same setting in integration runtime if + /// provided. + /// Core count of the cluster. The value will + /// be overwritten by the same setting in integration runtime if + /// provided. + /// Time to live setting of the cluster in + /// minutes. + /// Set to use integration runtime + /// setting for data flow debug session. + public CreateDataFlowDebugSessionRequest(string computeType = default(string), int? coreCount = default(int?), int? timeToLive = default(int?), IntegrationRuntimeDebugResource integrationRuntime = default(IntegrationRuntimeDebugResource)) + { + ComputeType = computeType; + CoreCount = coreCount; + TimeToLive = timeToLive; + IntegrationRuntime = integrationRuntime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets compute type of the cluster. The value will be + /// overwritten by the same setting in integration runtime if provided. + /// + [JsonProperty(PropertyName = "computeType")] + public string ComputeType { get; set; } + + /// + /// Gets or sets core count of the cluster. The value will be + /// overwritten by the same setting in integration runtime if provided. + /// + [JsonProperty(PropertyName = "coreCount")] + public int? CoreCount { get; set; } + + /// + /// Gets or sets time to live setting of the cluster in minutes. + /// + [JsonProperty(PropertyName = "timeToLive")] + public int? TimeToLive { get; set; } + + /// + /// Gets or sets set to use integration runtime setting for data flow + /// debug session. + /// + [JsonProperty(PropertyName = "integrationRuntime")] + public IntegrationRuntimeDebugResource IntegrationRuntime { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (IntegrationRuntime != null) + { + IntegrationRuntime.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CreateDataFlowDebugSessionResponse.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CreateDataFlowDebugSessionResponse.cs new file mode 100644 index 000000000000..f2f79da08226 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/CreateDataFlowDebugSessionResponse.cs @@ -0,0 +1,61 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Response body structure for creating data flow debug session. + /// + public partial class CreateDataFlowDebugSessionResponse + { + /// + /// Initializes a new instance of the + /// CreateDataFlowDebugSessionResponse class. + /// + public CreateDataFlowDebugSessionResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CreateDataFlowDebugSessionResponse class. + /// + /// The state of the debug session. + /// The ID of data flow debug session. + public CreateDataFlowDebugSessionResponse(string status = default(string), string sessionId = default(string)) + { + Status = status; + SessionId = sessionId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the state of the debug session. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the ID of data flow debug session. + /// + [JsonProperty(PropertyName = "sessionId")] + public string SessionId { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DWCopyCommandDefaultValue.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DWCopyCommandDefaultValue.cs new file mode 100644 index 000000000000..8c0f932ae478 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DWCopyCommandDefaultValue.cs @@ -0,0 +1,63 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Default value. + /// + public partial class DWCopyCommandDefaultValue + { + /// + /// Initializes a new instance of the DWCopyCommandDefaultValue class. + /// + public DWCopyCommandDefaultValue() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DWCopyCommandDefaultValue class. + /// + /// Column name. Type: object (or Expression + /// with resultType string). + /// The default value of the column. Type: + /// object (or Expression with resultType string). + public DWCopyCommandDefaultValue(object columnName = default(object), object defaultValue = default(object)) + { + ColumnName = columnName; + DefaultValue = defaultValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets column name. Type: object (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "columnName")] + public object ColumnName { get; set; } + + /// + /// Gets or sets the default value of the column. Type: object (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "defaultValue")] + public object DefaultValue { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DWCopyCommandSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DWCopyCommandSettings.cs new file mode 100644 index 000000000000..fc9d34469377 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DWCopyCommandSettings.cs @@ -0,0 +1,76 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// DW Copy Command settings. + /// + public partial class DWCopyCommandSettings + { + /// + /// Initializes a new instance of the DWCopyCommandSettings class. + /// + public DWCopyCommandSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DWCopyCommandSettings class. + /// + /// Specifies the default values for each + /// target column in SQL DW. The default values in the property + /// overwrite the DEFAULT constraint set in the DB, and identity column + /// cannot have a default value. Type: array of objects (or Expression + /// with resultType array of objects). + /// Additional options directly passed + /// to SQL DW in Copy Command. Type: key value pairs (value should be + /// string type) (or Expression with resultType object). Example: + /// "additionalOptions": { "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" + /// } + public DWCopyCommandSettings(IList defaultValues = default(IList), IDictionary additionalOptions = default(IDictionary)) + { + DefaultValues = defaultValues; + AdditionalOptions = additionalOptions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the default values for each target column in + /// SQL DW. The default values in the property overwrite the DEFAULT + /// constraint set in the DB, and identity column cannot have a default + /// value. Type: array of objects (or Expression with resultType array + /// of objects). + /// + [JsonProperty(PropertyName = "defaultValues")] + public IList DefaultValues { get; set; } + + /// + /// Gets or sets additional options directly passed to SQL DW in Copy + /// Command. Type: key value pairs (value should be string type) (or + /// Expression with resultType object). Example: "additionalOptions": { + /// "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" } + /// + [JsonProperty(PropertyName = "additionalOptions")] + public IDictionary AdditionalOptions { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlow.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlow.cs new file mode 100644 index 000000000000..f88c4d091d89 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlow.cs @@ -0,0 +1,74 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Azure Data Factory nested object which contains a flow with data + /// movements and transformations. + /// + public partial class DataFlow + { + /// + /// Initializes a new instance of the DataFlow class. + /// + public DataFlow() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlow class. + /// + /// The description of the data flow. + /// List of tags that can be used for + /// describing the data flow. + /// The folder that this data flow is in. If not + /// specified, Data flow will appear at the root level. + public DataFlow(string description = default(string), IList annotations = default(IList), DataFlowFolder folder = default(DataFlowFolder)) + { + Description = description; + Annotations = annotations; + Folder = folder; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the description of the data flow. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets list of tags that can be used for describing the data + /// flow. + /// + [JsonProperty(PropertyName = "annotations")] + public IList Annotations { get; set; } + + /// + /// Gets or sets the folder that this data flow is in. If not + /// specified, Data flow will appear at the root level. + /// + [JsonProperty(PropertyName = "folder")] + public DataFlowFolder Folder { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowComputeType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowComputeType.cs new file mode 100644 index 000000000000..e6aa0cc39be3 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowComputeType.cs @@ -0,0 +1,23 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for DataFlowComputeType. + /// + public static class DataFlowComputeType + { + public const string General = "General"; + public const string MemoryOptimized = "MemoryOptimized"; + public const string ComputeOptimized = "ComputeOptimized"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandPayload.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandPayload.cs new file mode 100644 index 000000000000..c54876caac7f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandPayload.cs @@ -0,0 +1,95 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Structure of command payload. + /// + public partial class DataFlowDebugCommandPayload + { + /// + /// Initializes a new instance of the DataFlowDebugCommandPayload + /// class. + /// + public DataFlowDebugCommandPayload() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowDebugCommandPayload + /// class. + /// + /// The stream name which is used for + /// preview. + /// Row limits for preview response. + /// Array of column names. + /// The expression which is used for + /// preview. + public DataFlowDebugCommandPayload(string streamName, int? rowLimits = default(int?), IList columns = default(IList), string expression = default(string)) + { + StreamName = streamName; + RowLimits = rowLimits; + Columns = columns; + Expression = expression; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the stream name which is used for preview. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// Gets or sets row limits for preview response. + /// + [JsonProperty(PropertyName = "rowLimits")] + public int? RowLimits { get; set; } + + /// + /// Gets or sets array of column names. + /// + [JsonProperty(PropertyName = "columns")] + public IList Columns { get; set; } + + /// + /// Gets or sets the expression which is used for preview. + /// + [JsonProperty(PropertyName = "expression")] + public string Expression { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StreamName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StreamName"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandRequest.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandRequest.cs new file mode 100644 index 000000000000..66c559cf2f30 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandRequest.cs @@ -0,0 +1,86 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Request body structure for data flow debug command. + /// + public partial class DataFlowDebugCommandRequest + { + /// + /// Initializes a new instance of the DataFlowDebugCommandRequest + /// class. + /// + public DataFlowDebugCommandRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowDebugCommandRequest + /// class. + /// + /// The ID of data flow debug session. + /// The command type. Possible values include: + /// 'executePreviewQuery', 'executeStatisticsQuery', + /// 'executeExpressionQuery' + /// The command payload object. + public DataFlowDebugCommandRequest(string sessionId = default(string), string command = default(string), DataFlowDebugCommandPayload commandPayload = default(DataFlowDebugCommandPayload)) + { + SessionId = sessionId; + Command = command; + CommandPayload = commandPayload; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of data flow debug session. + /// + [JsonProperty(PropertyName = "sessionId")] + public string SessionId { get; set; } + + /// + /// Gets or sets the command type. Possible values include: + /// 'executePreviewQuery', 'executeStatisticsQuery', + /// 'executeExpressionQuery' + /// + [JsonProperty(PropertyName = "command")] + public string Command { get; set; } + + /// + /// Gets or sets the command payload object. + /// + [JsonProperty(PropertyName = "commandPayload")] + public DataFlowDebugCommandPayload CommandPayload { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (CommandPayload != null) + { + CommandPayload.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandResponse.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandResponse.cs new file mode 100644 index 000000000000..034a3c28f49b --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandResponse.cs @@ -0,0 +1,66 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Response body structure of data flow result for data preview, + /// statistics or expression preview. + /// + public partial class DataFlowDebugCommandResponse + { + /// + /// Initializes a new instance of the DataFlowDebugCommandResponse + /// class. + /// + public DataFlowDebugCommandResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowDebugCommandResponse + /// class. + /// + /// The run status of data preview, statistics or + /// expression preview. + /// The result data of data preview, statistics or + /// expression preview. + public DataFlowDebugCommandResponse(string status = default(string), string data = default(string)) + { + Status = status; + Data = data; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the run status of data preview, statistics or + /// expression preview. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the result data of data preview, statistics or + /// expression preview. + /// + [JsonProperty(PropertyName = "data")] + public string Data { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandType.cs new file mode 100644 index 000000000000..23470ffe9278 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugCommandType.cs @@ -0,0 +1,23 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for DataFlowDebugCommandType. + /// + public static class DataFlowDebugCommandType + { + public const string ExecutePreviewQuery = "executePreviewQuery"; + public const string ExecuteStatisticsQuery = "executeStatisticsQuery"; + public const string ExecuteExpressionQuery = "executeExpressionQuery"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackage.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackage.cs new file mode 100644 index 000000000000..c6dc85624f26 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackage.cs @@ -0,0 +1,140 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Request body structure for starting data flow debug session. + /// + public partial class DataFlowDebugPackage + { + /// + /// Initializes a new instance of the DataFlowDebugPackage class. + /// + public DataFlowDebugPackage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowDebugPackage class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The ID of data flow debug session. + /// Data flow instance. + /// List of datasets. + /// List of linked services. + /// Staging info for debug session. + /// Data flow debug settings. + public DataFlowDebugPackage(IDictionary additionalProperties = default(IDictionary), string sessionId = default(string), DataFlowDebugResource dataFlow = default(DataFlowDebugResource), IList datasets = default(IList), IList linkedServices = default(IList), DataFlowStagingInfo staging = default(DataFlowStagingInfo), DataFlowDebugPackageDebugSettings debugSettings = default(DataFlowDebugPackageDebugSettings)) + { + AdditionalProperties = additionalProperties; + SessionId = sessionId; + DataFlow = dataFlow; + Datasets = datasets; + LinkedServices = linkedServices; + Staging = staging; + DebugSettings = debugSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets the ID of data flow debug session. + /// + [JsonProperty(PropertyName = "sessionId")] + public string SessionId { get; set; } + + /// + /// Gets or sets data flow instance. + /// + [JsonProperty(PropertyName = "dataFlow")] + public DataFlowDebugResource DataFlow { get; set; } + + /// + /// Gets or sets list of datasets. + /// + [JsonProperty(PropertyName = "datasets")] + public IList Datasets { get; set; } + + /// + /// Gets or sets list of linked services. + /// + [JsonProperty(PropertyName = "linkedServices")] + public IList LinkedServices { get; set; } + + /// + /// Gets or sets staging info for debug session. + /// + [JsonProperty(PropertyName = "staging")] + public DataFlowStagingInfo Staging { get; set; } + + /// + /// Gets or sets data flow debug settings. + /// + [JsonProperty(PropertyName = "debugSettings")] + public DataFlowDebugPackageDebugSettings DebugSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DataFlow != null) + { + DataFlow.Validate(); + } + if (Datasets != null) + { + foreach (var element in Datasets) + { + if (element != null) + { + element.Validate(); + } + } + } + if (LinkedServices != null) + { + foreach (var element1 in LinkedServices) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + if (Staging != null) + { + Staging.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs new file mode 100644 index 000000000000..ba905f0711b3 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs @@ -0,0 +1,72 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Data flow debug settings. + /// + public partial class DataFlowDebugPackageDebugSettings + { + /// + /// Initializes a new instance of the DataFlowDebugPackageDebugSettings + /// class. + /// + public DataFlowDebugPackageDebugSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowDebugPackageDebugSettings + /// class. + /// + /// Source setting for data flow + /// debug. + /// Data flow parameters. + /// Parameters for dataset. + public DataFlowDebugPackageDebugSettings(IList sourceSettings = default(IList), IDictionary parameters = default(IDictionary), object datasetParameters = default(object)) + { + SourceSettings = sourceSettings; + Parameters = parameters; + DatasetParameters = datasetParameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets source setting for data flow debug. + /// + [JsonProperty(PropertyName = "sourceSettings")] + public IList SourceSettings { get; set; } + + /// + /// Gets or sets data flow parameters. + /// + [JsonProperty(PropertyName = "parameters")] + public IDictionary Parameters { get; set; } + + /// + /// Gets or sets parameters for dataset. + /// + [JsonProperty(PropertyName = "datasetParameters")] + public object DatasetParameters { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugResource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugResource.cs new file mode 100644 index 000000000000..a2406c546cb7 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugResource.cs @@ -0,0 +1,67 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Data flow debug resource. + /// + public partial class DataFlowDebugResource : SubResourceDebugResource + { + /// + /// Initializes a new instance of the DataFlowDebugResource class. + /// + public DataFlowDebugResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowDebugResource class. + /// + /// Data flow properties. + /// The resource name. + public DataFlowDebugResource(DataFlow properties, string name = default(string)) + : base(name) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets data flow properties. + /// + [JsonProperty(PropertyName = "properties")] + public DataFlow Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionCreateHeaders.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionCreateHeaders.cs new file mode 100644 index 000000000000..d2e5f57282df --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionCreateHeaders.cs @@ -0,0 +1,54 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Create operation. + /// + public partial class DataFlowDebugSessionCreateHeaders + { + /// + /// Initializes a new instance of the DataFlowDebugSessionCreateHeaders + /// class. + /// + public DataFlowDebugSessionCreateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowDebugSessionCreateHeaders + /// class. + /// + /// URI to poll for asynchronous operation + /// status. + public DataFlowDebugSessionCreateHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URI to poll for asynchronous operation status. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionExecuteCommandHeaders.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionExecuteCommandHeaders.cs new file mode 100644 index 000000000000..6b26e807ebf7 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionExecuteCommandHeaders.cs @@ -0,0 +1,54 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for ExecuteCommand operation. + /// + public partial class DataFlowDebugSessionExecuteCommandHeaders + { + /// + /// Initializes a new instance of the + /// DataFlowDebugSessionExecuteCommandHeaders class. + /// + public DataFlowDebugSessionExecuteCommandHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DataFlowDebugSessionExecuteCommandHeaders class. + /// + /// URI to poll for asynchronous operation + /// status. + public DataFlowDebugSessionExecuteCommandHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URI to poll for asynchronous operation status. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.cs new file mode 100644 index 000000000000..4269ae63d198 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.cs @@ -0,0 +1,133 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Data flow debug session info. + /// + public partial class DataFlowDebugSessionInfo + { + /// + /// Initializes a new instance of the DataFlowDebugSessionInfo class. + /// + public DataFlowDebugSessionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowDebugSessionInfo class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The name of the data flow. + /// Compute type of the cluster. + /// Core count of the cluster. + /// Node count of the cluster. (deprecated + /// property) + /// Attached integration runtime + /// name of data flow debug session. + /// The ID of data flow debug session. + /// Start time of data flow debug + /// session. + /// Compute type of the + /// cluster. + /// Last activity time of data flow + /// debug session. + public DataFlowDebugSessionInfo(IDictionary additionalProperties = default(IDictionary), string dataFlowName = default(string), string computeType = default(string), int? coreCount = default(int?), int? nodeCount = default(int?), string integrationRuntimeName = default(string), string sessionId = default(string), string startTime = default(string), int? timeToLiveInMinutes = default(int?), string lastActivityTime = default(string)) + { + AdditionalProperties = additionalProperties; + DataFlowName = dataFlowName; + ComputeType = computeType; + CoreCount = coreCount; + NodeCount = nodeCount; + IntegrationRuntimeName = integrationRuntimeName; + SessionId = sessionId; + StartTime = startTime; + TimeToLiveInMinutes = timeToLiveInMinutes; + LastActivityTime = lastActivityTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets the name of the data flow. + /// + [JsonProperty(PropertyName = "dataFlowName")] + public string DataFlowName { get; set; } + + /// + /// Gets or sets compute type of the cluster. + /// + [JsonProperty(PropertyName = "computeType")] + public string ComputeType { get; set; } + + /// + /// Gets or sets core count of the cluster. + /// + [JsonProperty(PropertyName = "coreCount")] + public int? CoreCount { get; set; } + + /// + /// Gets or sets node count of the cluster. (deprecated property) + /// + [JsonProperty(PropertyName = "nodeCount")] + public int? NodeCount { get; set; } + + /// + /// Gets or sets attached integration runtime name of data flow debug + /// session. + /// + [JsonProperty(PropertyName = "integrationRuntimeName")] + public string IntegrationRuntimeName { get; set; } + + /// + /// Gets or sets the ID of data flow debug session. + /// + [JsonProperty(PropertyName = "sessionId")] + public string SessionId { get; set; } + + /// + /// Gets or sets start time of data flow debug session. + /// + [JsonProperty(PropertyName = "startTime")] + public string StartTime { get; set; } + + /// + /// Gets or sets compute type of the cluster. + /// + [JsonProperty(PropertyName = "timeToLiveInMinutes")] + public int? TimeToLiveInMinutes { get; set; } + + /// + /// Gets or sets last activity time of data flow debug session. + /// + [JsonProperty(PropertyName = "lastActivityTime")] + public string LastActivityTime { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowFolder.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowFolder.cs new file mode 100644 index 000000000000..99419a661eee --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowFolder.cs @@ -0,0 +1,53 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The folder that this data flow is in. If not specified, Data flow will + /// appear at the root level. + /// + public partial class DataFlowFolder + { + /// + /// Initializes a new instance of the DataFlowFolder class. + /// + public DataFlowFolder() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowFolder class. + /// + /// The name of the folder that this data flow is + /// in. + public DataFlowFolder(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the folder that this data flow is in. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowReference.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowReference.cs new file mode 100644 index 000000000000..da9861bce286 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowReference.cs @@ -0,0 +1,99 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Data flow reference type. + /// + public partial class DataFlowReference + { + /// + /// Initializes a new instance of the DataFlowReference class. + /// + public DataFlowReference() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowReference class. + /// + /// Reference data flow name. + /// Unmatched properties from the + /// message are deserialized this collection + /// Reference data flow parameters from + /// dataset. + public DataFlowReference(string referenceName, IDictionary additionalProperties = default(IDictionary), object datasetParameters = default(object)) + { + AdditionalProperties = additionalProperties; + ReferenceName = referenceName; + DatasetParameters = datasetParameters; + CustomInit(); + } + /// + /// Static constructor for DataFlowReference class. + /// + static DataFlowReference() + { + Type = "DataFlowReference"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets reference data flow name. + /// + [JsonProperty(PropertyName = "referenceName")] + public string ReferenceName { get; set; } + + /// + /// Gets or sets reference data flow parameters from dataset. + /// + [JsonProperty(PropertyName = "datasetParameters")] + public object DatasetParameters { get; set; } + + /// + /// Data flow reference type. + /// + [JsonProperty(PropertyName = "type")] + public static string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ReferenceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ReferenceName"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowResource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowResource.cs new file mode 100644 index 000000000000..6ee35e23dc6e --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowResource.cs @@ -0,0 +1,70 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Data flow resource type. + /// + public partial class DataFlowResource : SubResource + { + /// + /// Initializes a new instance of the DataFlowResource class. + /// + public DataFlowResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowResource class. + /// + /// Data flow properties. + /// The resource identifier. + /// The resource name. + /// The resource type. + /// Etag identifies change in the resource. + public DataFlowResource(DataFlow properties, string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) + : base(id, name, type, etag) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets data flow properties. + /// + [JsonProperty(PropertyName = "properties")] + public DataFlow Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSink.cs new file mode 100644 index 000000000000..89a39070f26a --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSink.cs @@ -0,0 +1,68 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Transformation for data flow sink. + /// + public partial class DataFlowSink : Transformation + { + /// + /// Initializes a new instance of the DataFlowSink class. + /// + public DataFlowSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowSink class. + /// + /// Transformation name. + /// Transformation description. + /// Dataset reference. + public DataFlowSink(string name, string description = default(string), DatasetReference dataset = default(DatasetReference)) + : base(name, description) + { + Dataset = dataset; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets dataset reference. + /// + [JsonProperty(PropertyName = "dataset")] + public DatasetReference Dataset { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Dataset != null) + { + Dataset.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSource.cs new file mode 100644 index 000000000000..980ed9cd488f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSource.cs @@ -0,0 +1,68 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Transformation for data flow source. + /// + public partial class DataFlowSource : Transformation + { + /// + /// Initializes a new instance of the DataFlowSource class. + /// + public DataFlowSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowSource class. + /// + /// Transformation name. + /// Transformation description. + /// Dataset reference. + public DataFlowSource(string name, string description = default(string), DatasetReference dataset = default(DatasetReference)) + : base(name, description) + { + Dataset = dataset; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets dataset reference. + /// + [JsonProperty(PropertyName = "dataset")] + public DatasetReference Dataset { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Dataset != null) + { + Dataset.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSourceSetting.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSourceSetting.cs new file mode 100644 index 000000000000..1ab99dab0459 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSourceSetting.cs @@ -0,0 +1,72 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Definition of data flow source setting for debug. + /// + public partial class DataFlowSourceSetting + { + /// + /// Initializes a new instance of the DataFlowSourceSetting class. + /// + public DataFlowSourceSetting() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowSourceSetting class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The data flow source name. + /// Defines the row limit of data flow source in + /// debug. + public DataFlowSourceSetting(IDictionary additionalProperties = default(IDictionary), string sourceName = default(string), int? rowLimit = default(int?)) + { + AdditionalProperties = additionalProperties; + SourceName = sourceName; + RowLimit = rowLimit; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets the data flow source name. + /// + [JsonProperty(PropertyName = "sourceName")] + public string SourceName { get; set; } + + /// + /// Gets or sets defines the row limit of data flow source in debug. + /// + [JsonProperty(PropertyName = "rowLimit")] + public int? RowLimit { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowStagingInfo.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowStagingInfo.cs new file mode 100644 index 000000000000..b77877ea33a0 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowStagingInfo.cs @@ -0,0 +1,73 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Staging info for execute data flow activity. + /// + public partial class DataFlowStagingInfo + { + /// + /// Initializes a new instance of the DataFlowStagingInfo class. + /// + public DataFlowStagingInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataFlowStagingInfo class. + /// + /// Staging linked service + /// reference. + /// Folder path for staging blob. + public DataFlowStagingInfo(LinkedServiceReference linkedService = default(LinkedServiceReference), string folderPath = default(string)) + { + LinkedService = linkedService; + FolderPath = folderPath; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets staging linked service reference. + /// + [JsonProperty(PropertyName = "linkedService")] + public LinkedServiceReference LinkedService { get; set; } + + /// + /// Gets or sets folder path for staging blob. + /// + [JsonProperty(PropertyName = "folderPath")] + public string FolderPath { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LinkedService != null) + { + LinkedService.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDebugResource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDebugResource.cs new file mode 100644 index 000000000000..e7663cefc472 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDebugResource.cs @@ -0,0 +1,72 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Dataset debug resource. + /// + public partial class DatasetDebugResource : SubResourceDebugResource + { + /// + /// Initializes a new instance of the DatasetDebugResource class. + /// + public DatasetDebugResource() + { + Properties = new Dataset(); + CustomInit(); + } + + /// + /// Initializes a new instance of the DatasetDebugResource class. + /// + /// Dataset properties. + /// The resource name. + public DatasetDebugResource(Dataset properties, string name = default(string)) + : base(name) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets dataset properties. + /// + [JsonProperty(PropertyName = "properties")] + public Dataset Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DeleteDataFlowDebugSessionRequest.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DeleteDataFlowDebugSessionRequest.cs new file mode 100644 index 000000000000..d6bcccba884a --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DeleteDataFlowDebugSessionRequest.cs @@ -0,0 +1,53 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Request body structure for deleting data flow debug session. + /// + public partial class DeleteDataFlowDebugSessionRequest + { + /// + /// Initializes a new instance of the DeleteDataFlowDebugSessionRequest + /// class. + /// + public DeleteDataFlowDebugSessionRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeleteDataFlowDebugSessionRequest + /// class. + /// + /// The ID of data flow debug session. + public DeleteDataFlowDebugSessionRequest(string sessionId = default(string)) + { + SessionId = sessionId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of data flow debug session. + /// + [JsonProperty(PropertyName = "sessionId")] + public string SessionId { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.cs new file mode 100644 index 000000000000..a62b2be1db43 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.cs @@ -0,0 +1,120 @@ +// +// 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. +// + +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; + + /// + /// Execute data flow activity. + /// + [Newtonsoft.Json.JsonObject("ExecuteDataFlow")] + [Rest.Serialization.JsonTransformation] + public partial class ExecuteDataFlowActivity : ExecutionActivity + { + /// + /// Initializes a new instance of the ExecuteDataFlowActivity class. + /// + public ExecuteDataFlowActivity() + { + DataFlow = new DataFlowReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the ExecuteDataFlowActivity class. + /// + /// Activity name. + /// Data flow reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Activity description. + /// Activity depends on condition. + /// Activity user properties. + /// Linked service reference. + /// Activity policy. + /// Staging info for execute data flow + /// activity. + /// The integration runtime + /// reference. + /// Compute properties for data flow + /// activity. + public ExecuteDataFlowActivity(string name, DataFlowReference dataFlow, IDictionary additionalProperties = default(IDictionary), string description = default(string), IList dependsOn = default(IList), IList userProperties = default(IList), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), DataFlowStagingInfo staging = default(DataFlowStagingInfo), IntegrationRuntimeReference integrationRuntime = default(IntegrationRuntimeReference), ExecuteDataFlowActivityTypePropertiesCompute compute = default(ExecuteDataFlowActivityTypePropertiesCompute)) + : base(name, additionalProperties, description, dependsOn, userProperties, linkedServiceName, policy) + { + DataFlow = dataFlow; + Staging = staging; + IntegrationRuntime = integrationRuntime; + Compute = compute; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets data flow reference. + /// + [JsonProperty(PropertyName = "typeProperties.dataFlow")] + public DataFlowReference DataFlow { get; set; } + + /// + /// Gets or sets staging info for execute data flow activity. + /// + [JsonProperty(PropertyName = "typeProperties.staging")] + public DataFlowStagingInfo Staging { get; set; } + + /// + /// Gets or sets the integration runtime reference. + /// + [JsonProperty(PropertyName = "typeProperties.integrationRuntime")] + public IntegrationRuntimeReference IntegrationRuntime { get; set; } + + /// + /// Gets or sets compute properties for data flow activity. + /// + [JsonProperty(PropertyName = "typeProperties.compute")] + public ExecuteDataFlowActivityTypePropertiesCompute Compute { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (DataFlow == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DataFlow"); + } + if (DataFlow != null) + { + DataFlow.Validate(); + } + if (Staging != null) + { + Staging.Validate(); + } + if (IntegrationRuntime != null) + { + IntegrationRuntime.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.cs new file mode 100644 index 000000000000..89eb4bbec711 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.cs @@ -0,0 +1,68 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Compute properties for data flow activity. + /// + public partial class ExecuteDataFlowActivityTypePropertiesCompute + { + /// + /// Initializes a new instance of the + /// ExecuteDataFlowActivityTypePropertiesCompute class. + /// + public ExecuteDataFlowActivityTypePropertiesCompute() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ExecuteDataFlowActivityTypePropertiesCompute class. + /// + /// Compute type of the cluster which will + /// execute data flow job. Possible values include: 'General', + /// 'MemoryOptimized', 'ComputeOptimized' + /// Core count of the cluster which will + /// execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 + /// and 272. + public ExecuteDataFlowActivityTypePropertiesCompute(string computeType = default(string), int? coreCount = default(int?)) + { + ComputeType = computeType; + CoreCount = coreCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets compute type of the cluster which will execute data + /// flow job. Possible values include: 'General', 'MemoryOptimized', + /// 'ComputeOptimized' + /// + [JsonProperty(PropertyName = "computeType")] + public string ComputeType { get; set; } + + /// + /// Gets or sets core count of the cluster which will execute data flow + /// job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. + /// + [JsonProperty(PropertyName = "coreCount")] + public int? CoreCount { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExportSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExportSettings.cs new file mode 100644 index 000000000000..422b0c171cf0 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExportSettings.cs @@ -0,0 +1,55 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Export command settings. + /// + public partial class ExportSettings + { + /// + /// Initializes a new instance of the ExportSettings class. + /// + public ExportSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExportSettings class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + public ExportSettings(IDictionary additionalProperties = default(IDictionary)) + { + AdditionalProperties = additionalProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GetDataFactoryOperationStatusResponse.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GetDataFactoryOperationStatusResponse.cs new file mode 100644 index 000000000000..024f0b4c47eb --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GetDataFactoryOperationStatusResponse.cs @@ -0,0 +1,65 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Response body structure for get data factory operation status. + /// + public partial class GetDataFactoryOperationStatusResponse + { + /// + /// Initializes a new instance of the + /// GetDataFactoryOperationStatusResponse class. + /// + public GetDataFactoryOperationStatusResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// GetDataFactoryOperationStatusResponse class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Status of the operation. + public GetDataFactoryOperationStatusResponse(IDictionary additionalProperties = default(IDictionary), string status = default(string)) + { + AdditionalProperties = additionalProperties; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets status of the operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.cs new file mode 100644 index 000000000000..16c37ac43783 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.cs @@ -0,0 +1,120 @@ +// +// 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. +// + +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; + + /// + /// Linked service for Google Cloud Storage. + /// + [Newtonsoft.Json.JsonObject("GoogleCloudStorage")] + [Rest.Serialization.JsonTransformation] + public partial class GoogleCloudStorageLinkedService : LinkedService + { + /// + /// Initializes a new instance of the GoogleCloudStorageLinkedService + /// class. + /// + public GoogleCloudStorageLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GoogleCloudStorageLinkedService + /// class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The access key identifier of the Google + /// Cloud Storage Identity and Access Management (IAM) user. Type: + /// string (or Expression with resultType string). + /// The secret access key of the Google + /// Cloud Storage Identity and Access Management (IAM) user. + /// This value specifies the endpoint to + /// access with the Google Cloud Storage Connector. This is an optional + /// property; change it only if you want to try a different service + /// endpoint or want to switch between https and http. Type: string (or + /// Expression with resultType string). + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public GoogleCloudStorageLinkedService(IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object accessKeyId = default(object), SecretBase secretAccessKey = default(SecretBase), object serviceUrl = default(object), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + AccessKeyId = accessKeyId; + SecretAccessKey = secretAccessKey; + ServiceUrl = serviceUrl; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the access key identifier of the Google Cloud Storage + /// Identity and Access Management (IAM) user. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.accessKeyId")] + public object AccessKeyId { get; set; } + + /// + /// Gets or sets the secret access key of the Google Cloud Storage + /// Identity and Access Management (IAM) user. + /// + [JsonProperty(PropertyName = "typeProperties.secretAccessKey")] + public SecretBase SecretAccessKey { get; set; } + + /// + /// Gets or sets this value specifies the endpoint to access with the + /// Google Cloud Storage Connector. This is an optional property; + /// change it only if you want to try a different service endpoint or + /// want to switch between https and http. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.serviceUrl")] + public object ServiceUrl { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageLocation.cs new file mode 100644 index 000000000000..ea04ad299b74 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageLocation.cs @@ -0,0 +1,73 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The location of Google Cloud Storage dataset. + /// + public partial class GoogleCloudStorageLocation : DatasetLocation + { + /// + /// Initializes a new instance of the GoogleCloudStorageLocation class. + /// + public GoogleCloudStorageLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GoogleCloudStorageLocation class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Specify the folder path of dataset. Type: + /// string (or Expression with resultType string) + /// Specify the file name of dataset. Type: + /// string (or Expression with resultType string). + /// Specify the bucketName of Google Cloud + /// Storage. Type: string (or Expression with resultType + /// string) + /// Specify the version of Google Cloud Storage. + /// Type: string (or Expression with resultType string). + public GoogleCloudStorageLocation(IDictionary additionalProperties = default(IDictionary), object folderPath = default(object), object fileName = default(object), object bucketName = default(object), object version = default(object)) + : base(additionalProperties, folderPath, fileName) + { + BucketName = bucketName; + Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specify the bucketName of Google Cloud Storage. Type: + /// string (or Expression with resultType string) + /// + [JsonProperty(PropertyName = "bucketName")] + public object BucketName { get; set; } + + /// + /// Gets or sets specify the version of Google Cloud Storage. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "version")] + public object Version { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageReadSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageReadSettings.cs new file mode 100644 index 000000000000..94c892946c0f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageReadSettings.cs @@ -0,0 +1,142 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Google Cloud Storage read settings. + /// + public partial class GoogleCloudStorageReadSettings : StoreReadSettings + { + /// + /// Initializes a new instance of the GoogleCloudStorageReadSettings + /// class. + /// + public GoogleCloudStorageReadSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GoogleCloudStorageReadSettings + /// class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// If true, files under the folder path will + /// be read recursively. Default is true. Type: boolean (or Expression + /// with resultType boolean). + /// Google Cloud Storage + /// wildcardFolderPath. Type: string (or Expression with resultType + /// string). + /// Google Cloud Storage + /// wildcardFileName. Type: string (or Expression with resultType + /// string). + /// The prefix filter for the Google Cloud Storage + /// object name. Type: string (or Expression with resultType + /// string). + /// Point to a text file that lists each + /// file (relative path to the path configured in the dataset) that you + /// want to copy. Type: string (or Expression with resultType + /// string). + /// Indicates whether to enable + /// partition discovery. + /// The start of file's modified + /// datetime. Type: string (or Expression with resultType + /// string). + /// The end of file's modified + /// datetime. Type: string (or Expression with resultType + /// string). + public GoogleCloudStorageReadSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object recursive = default(object), object wildcardFolderPath = default(object), object wildcardFileName = default(object), object prefix = default(object), object fileListPath = default(object), bool? enablePartitionDiscovery = default(bool?), object modifiedDatetimeStart = default(object), object modifiedDatetimeEnd = default(object)) + : base(additionalProperties, maxConcurrentConnections) + { + Recursive = recursive; + WildcardFolderPath = wildcardFolderPath; + WildcardFileName = wildcardFileName; + Prefix = prefix; + FileListPath = fileListPath; + EnablePartitionDiscovery = enablePartitionDiscovery; + ModifiedDatetimeStart = modifiedDatetimeStart; + ModifiedDatetimeEnd = modifiedDatetimeEnd; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets if true, files under the folder path will be read + /// recursively. Default is true. Type: boolean (or Expression with + /// resultType boolean). + /// + [JsonProperty(PropertyName = "recursive")] + public object Recursive { get; set; } + + /// + /// Gets or sets google Cloud Storage wildcardFolderPath. Type: string + /// (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "wildcardFolderPath")] + public object WildcardFolderPath { get; set; } + + /// + /// Gets or sets google Cloud Storage wildcardFileName. Type: string + /// (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "wildcardFileName")] + public object WildcardFileName { get; set; } + + /// + /// Gets or sets the prefix filter for the Google Cloud Storage object + /// name. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "prefix")] + public object Prefix { get; set; } + + /// + /// Gets or sets point to a text file that lists each file (relative + /// path to the path configured in the dataset) that you want to copy. + /// Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "fileListPath")] + public object FileListPath { get; set; } + + /// + /// Gets or sets indicates whether to enable partition discovery. + /// + [JsonProperty(PropertyName = "enablePartitionDiscovery")] + public bool? EnablePartitionDiscovery { get; set; } + + /// + /// Gets or sets the start of file's modified datetime. Type: string + /// (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "modifiedDatetimeStart")] + public object ModifiedDatetimeStart { get; set; } + + /// + /// Gets or sets the end of file's modified datetime. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "modifiedDatetimeEnd")] + public object ModifiedDatetimeEnd { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ImportSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ImportSettings.cs new file mode 100644 index 000000000000..675dbe68f59c --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ImportSettings.cs @@ -0,0 +1,55 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Import command settings. + /// + public partial class ImportSettings + { + /// + /// Initializes a new instance of the ImportSettings class. + /// + public ImportSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ImportSettings class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + public ImportSettings(IDictionary additionalProperties = default(IDictionary)) + { + AdditionalProperties = additionalProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs new file mode 100644 index 000000000000..e57f1a7b0ce4 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs @@ -0,0 +1,104 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Data flow properties for managed integration runtime. + /// + public partial class IntegrationRuntimeDataFlowProperties + { + /// + /// Initializes a new instance of the + /// IntegrationRuntimeDataFlowProperties class. + /// + public IntegrationRuntimeDataFlowProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationRuntimeDataFlowProperties class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Compute type of the cluster which will + /// execute data flow job. Possible values include: 'General', + /// 'MemoryOptimized', 'ComputeOptimized' + /// Core count of the cluster which will + /// execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 + /// and 272. + /// Time to live (in minutes) setting of the + /// cluster which will execute data flow job. + public IntegrationRuntimeDataFlowProperties(IDictionary additionalProperties = default(IDictionary), string computeType = default(string), int? coreCount = default(int?), int? timeToLive = default(int?)) + { + AdditionalProperties = additionalProperties; + ComputeType = computeType; + CoreCount = coreCount; + TimeToLive = timeToLive; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets compute type of the cluster which will execute data + /// flow job. Possible values include: 'General', 'MemoryOptimized', + /// 'ComputeOptimized' + /// + [JsonProperty(PropertyName = "computeType")] + public string ComputeType { get; set; } + + /// + /// Gets or sets core count of the cluster which will execute data flow + /// job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. + /// + [JsonProperty(PropertyName = "coreCount")] + public int? CoreCount { get; set; } + + /// + /// Gets or sets time to live (in minutes) setting of the cluster which + /// will execute data flow job. + /// + [JsonProperty(PropertyName = "timeToLive")] + public int? TimeToLive { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TimeToLive < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeToLive", 0); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDebugResource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDebugResource.cs new file mode 100644 index 000000000000..25f6a768839f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDebugResource.cs @@ -0,0 +1,69 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Integration runtime debug resource. + /// + public partial class IntegrationRuntimeDebugResource : SubResourceDebugResource + { + /// + /// Initializes a new instance of the IntegrationRuntimeDebugResource + /// class. + /// + public IntegrationRuntimeDebugResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IntegrationRuntimeDebugResource + /// class. + /// + /// Integration runtime properties. + /// The resource name. + public IntegrationRuntimeDebugResource(IntegrationRuntime properties, string name = default(string)) + : base(name) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets integration runtime properties. + /// + [JsonProperty(PropertyName = "properties")] + public IntegrationRuntime Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/LinkedServiceDebugResource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/LinkedServiceDebugResource.cs new file mode 100644 index 000000000000..4ec8efb088fc --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/LinkedServiceDebugResource.cs @@ -0,0 +1,72 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Linked service debug resource. + /// + public partial class LinkedServiceDebugResource : SubResourceDebugResource + { + /// + /// Initializes a new instance of the LinkedServiceDebugResource class. + /// + public LinkedServiceDebugResource() + { + Properties = new LinkedService(); + CustomInit(); + } + + /// + /// Initializes a new instance of the LinkedServiceDebugResource class. + /// + /// Properties of linked service. + /// The resource name. + public LinkedServiceDebugResource(LinkedService properties, string name = default(string)) + : base(name) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets properties of linked service. + /// + [JsonProperty(PropertyName = "properties")] + public LinkedService Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MappingDataFlow.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MappingDataFlow.cs new file mode 100644 index 000000000000..5cb562ed6281 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MappingDataFlow.cs @@ -0,0 +1,87 @@ +// +// 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. +// + +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; + + /// + /// Mapping data flow. + /// + [Rest.Serialization.JsonTransformation] + public partial class MappingDataFlow : DataFlow + { + /// + /// Initializes a new instance of the MappingDataFlow class. + /// + public MappingDataFlow() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MappingDataFlow class. + /// + /// The description of the data flow. + /// List of tags that can be used for + /// describing the data flow. + /// The folder that this data flow is in. If not + /// specified, Data flow will appear at the root level. + /// List of sources in data flow. + /// List of sinks in data flow. + /// List of transformations in data + /// flow. + /// DataFlow script. + public MappingDataFlow(string description = default(string), IList annotations = default(IList), DataFlowFolder folder = default(DataFlowFolder), IList sources = default(IList), IList sinks = default(IList), IList transformations = default(IList), string script = default(string)) + : base(description, annotations, folder) + { + Sources = sources; + Sinks = sinks; + Transformations = transformations; + Script = script; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of sources in data flow. + /// + [JsonProperty(PropertyName = "typeProperties.sources")] + public IList Sources { get; set; } + + /// + /// Gets or sets list of sinks in data flow. + /// + [JsonProperty(PropertyName = "typeProperties.sinks")] + public IList Sinks { get; set; } + + /// + /// Gets or sets list of transformations in data flow. + /// + [JsonProperty(PropertyName = "typeProperties.transformations")] + public IList Transformations { get; set; } + + /// + /// Gets or sets dataFlow script. + /// + [JsonProperty(PropertyName = "typeProperties.script")] + public string Script { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OrcCompressionCodec.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OrcCompressionCodec.cs new file mode 100644 index 000000000000..4c34dd3a5833 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/OrcCompressionCodec.cs @@ -0,0 +1,23 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for OrcCompressionCodec. + /// + public static class OrcCompressionCodec + { + public const string None = "none"; + public const string Zlib = "zlib"; + public const string Snappy = "snappy"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISChildPackage.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISChildPackage.cs new file mode 100644 index 000000000000..e05fea4cc933 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISChildPackage.cs @@ -0,0 +1,98 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// SSIS embedded child package. + /// + public partial class SSISChildPackage + { + /// + /// Initializes a new instance of the SSISChildPackage class. + /// + public SSISChildPackage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SSISChildPackage class. + /// + /// Path for embedded child package. Type: + /// string (or Expression with resultType string). + /// Content for embedded child package. + /// Type: string (or Expression with resultType string). + /// Name for embedded child package. + /// Last modified date for + /// embedded child package. + public SSISChildPackage(object packagePath, object packageContent, string packageName = default(string), string packageLastModifiedDate = default(string)) + { + PackagePath = packagePath; + PackageName = packageName; + PackageContent = packageContent; + PackageLastModifiedDate = packageLastModifiedDate; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets path for embedded child package. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "packagePath")] + public object PackagePath { get; set; } + + /// + /// Gets or sets name for embedded child package. + /// + [JsonProperty(PropertyName = "packageName")] + public string PackageName { get; set; } + + /// + /// Gets or sets content for embedded child package. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "packageContent")] + public object PackageContent { get; set; } + + /// + /// Gets or sets last modified date for embedded child package. + /// + [JsonProperty(PropertyName = "packageLastModifiedDate")] + public string PackageLastModifiedDate { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PackagePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PackagePath"); + } + if (PackageContent == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PackageContent"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapHanaPartitionOption.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapHanaPartitionOption.cs new file mode 100644 index 000000000000..9db501160237 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapHanaPartitionOption.cs @@ -0,0 +1,23 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for SapHanaPartitionOption. + /// + public static class SapHanaPartitionOption + { + public const string None = "None"; + public const string PhysicalPartitionsOfTable = "PhysicalPartitionsOfTable"; + public const string SapHanaDynamicRange = "SapHanaDynamicRange"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapHanaPartitionSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapHanaPartitionSettings.cs new file mode 100644 index 000000000000..3f3e0091e4cb --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SapHanaPartitionSettings.cs @@ -0,0 +1,55 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The settings that will be leveraged for SAP HANA source partitioning. + /// + public partial class SapHanaPartitionSettings + { + /// + /// Initializes a new instance of the SapHanaPartitionSettings class. + /// + public SapHanaPartitionSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SapHanaPartitionSettings class. + /// + /// The name of the column that will + /// be used for proceeding range partitioning. Type: string (or + /// Expression with resultType string). + public SapHanaPartitionSettings(object partitionColumnName = default(object)) + { + PartitionColumnName = partitionColumnName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the column that will be used for + /// proceeding range partitioning. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "partitionColumnName")] + public object PartitionColumnName { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SftpWriteSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SftpWriteSettings.cs new file mode 100644 index 000000000000..00727e5df994 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SftpWriteSettings.cs @@ -0,0 +1,78 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Sftp write settings. + /// + public partial class SftpWriteSettings : StoreWriteSettings + { + /// + /// Initializes a new instance of the SftpWriteSettings class. + /// + public SftpWriteSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SftpWriteSettings class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// The type of copy behavior for copy + /// sink. + /// Specifies the timeout for writing + /// each chunk to SFTP server. Default value: 01:00:00 (one hour). + /// Type: string (or Expression with resultType string). + /// Upload to temporary file(s) and + /// rename. Disable this option if your SFTP server doesn't support + /// rename operation. Type: boolean (or Expression with resultType + /// boolean). + public SftpWriteSettings(IDictionary additionalProperties = default(IDictionary), object maxConcurrentConnections = default(object), object copyBehavior = default(object), object operationTimeout = default(object), object useTempFileRename = default(object)) + : base(additionalProperties, maxConcurrentConnections, copyBehavior) + { + OperationTimeout = operationTimeout; + UseTempFileRename = useTempFileRename; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the timeout for writing each chunk to SFTP + /// server. Default value: 01:00:00 (one hour). Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "operationTimeout")] + public object OperationTimeout { get; set; } + + /// + /// Gets or sets upload to temporary file(s) and rename. Disable this + /// option if your SFTP server doesn't support rename operation. Type: + /// boolean (or Expression with resultType boolean). + /// + [JsonProperty(PropertyName = "useTempFileRename")] + public object UseTempFileRename { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SkipErrorFile.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SkipErrorFile.cs new file mode 100644 index 000000000000..15768887653d --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SkipErrorFile.cs @@ -0,0 +1,67 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Skip error file. + /// + public partial class SkipErrorFile + { + /// + /// Initializes a new instance of the SkipErrorFile class. + /// + public SkipErrorFile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SkipErrorFile class. + /// + /// Skip if file is deleted by other client + /// during copy. Default is true. Type: boolean (or Expression with + /// resultType boolean). + /// Skip if source/sink file changed by + /// other concurrent write. Default is false. Type: boolean (or + /// Expression with resultType boolean). + public SkipErrorFile(object fileMissing = default(object), object dataInconsistency = default(object)) + { + FileMissing = fileMissing; + DataInconsistency = dataInconsistency; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets skip if file is deleted by other client during copy. + /// Default is true. Type: boolean (or Expression with resultType + /// boolean). + /// + [JsonProperty(PropertyName = "fileMissing")] + public object FileMissing { get; set; } + + /// + /// Gets or sets skip if source/sink file changed by other concurrent + /// write. Default is false. Type: boolean (or Expression with + /// resultType boolean). + /// + [JsonProperty(PropertyName = "dataInconsistency")] + public object DataInconsistency { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeDataset.cs new file mode 100644 index 000000000000..f8eda0b771e0 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeDataset.cs @@ -0,0 +1,97 @@ +// +// 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. +// + +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; + + /// + /// The snowflake dataset. + /// + [Newtonsoft.Json.JsonObject("SnowflakeTable")] + [Rest.Serialization.JsonTransformation] + public partial class SnowflakeDataset : Dataset + { + /// + /// Initializes a new instance of the SnowflakeDataset class. + /// + public SnowflakeDataset() + { + LinkedServiceName = new LinkedServiceReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the SnowflakeDataset class. + /// + /// Linked service reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Dataset description. + /// Columns that define the structure of the + /// dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetDataElement. + /// Columns that define the physical type schema + /// of the dataset. Type: array (or Expression with resultType array), + /// itemType: DatasetSchemaDataElement. + /// Parameters for dataset. + /// List of tags that can be used for + /// describing the Dataset. + /// The folder that this Dataset is in. If not + /// specified, Dataset will appear at the root level. + /// The schema name of the + /// Snowflake database. Type: string (or Expression with resultType + /// string). + /// The table name of the Snowflake database. Type: + /// string (or Expression with resultType string). + public SnowflakeDataset(LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), string description = default(string), object structure = default(object), object schema = default(object), IDictionary parameters = default(IDictionary), IList annotations = default(IList), DatasetFolder folder = default(DatasetFolder), object snowflakeDatasetSchema = default(object), object table = default(object)) + : base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) + { + SnowflakeDatasetSchema = snowflakeDatasetSchema; + Table = table; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the schema name of the Snowflake database. Type: + /// string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.schema")] + public object SnowflakeDatasetSchema { get; set; } + + /// + /// Gets or sets the table name of the Snowflake database. Type: string + /// (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.table")] + public object Table { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeExportCopyCommand.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeExportCopyCommand.cs new file mode 100644 index 000000000000..2f418b36258a --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeExportCopyCommand.cs @@ -0,0 +1,80 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Snowflake export command settings. + /// + public partial class SnowflakeExportCopyCommand : ExportSettings + { + /// + /// Initializes a new instance of the SnowflakeExportCopyCommand class. + /// + public SnowflakeExportCopyCommand() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SnowflakeExportCopyCommand class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Additional copy options + /// directly passed to snowflake Copy Command. Type: key value pairs + /// (value should be string type) (or Expression with resultType + /// object). Example: "additionalCopyOptions": { "DATE_FORMAT": + /// "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" } + /// Additional format options + /// directly passed to snowflake Copy Command. Type: key value pairs + /// (value should be string type) (or Expression with resultType + /// object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", + /// "MAX_FILE_SIZE": "'FALSE'" } + public SnowflakeExportCopyCommand(IDictionary additionalProperties = default(IDictionary), IDictionary additionalCopyOptions = default(IDictionary), IDictionary additionalFormatOptions = default(IDictionary)) + : base(additionalProperties) + { + AdditionalCopyOptions = additionalCopyOptions; + AdditionalFormatOptions = additionalFormatOptions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets additional copy options directly passed to snowflake + /// Copy Command. Type: key value pairs (value should be string type) + /// (or Expression with resultType object). Example: + /// "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", + /// "TIME_FORMAT": "'HH24:MI:SS.FF'" } + /// + [JsonProperty(PropertyName = "additionalCopyOptions")] + public IDictionary AdditionalCopyOptions { get; set; } + + /// + /// Gets or sets additional format options directly passed to snowflake + /// Copy Command. Type: key value pairs (value should be string type) + /// (or Expression with resultType object). Example: + /// "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": + /// "'FALSE'" } + /// + [JsonProperty(PropertyName = "additionalFormatOptions")] + public IDictionary AdditionalFormatOptions { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeImportCopyCommand.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeImportCopyCommand.cs new file mode 100644 index 000000000000..f4294ba96d93 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeImportCopyCommand.cs @@ -0,0 +1,80 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Snowflake import command settings. + /// + public partial class SnowflakeImportCopyCommand : ImportSettings + { + /// + /// Initializes a new instance of the SnowflakeImportCopyCommand class. + /// + public SnowflakeImportCopyCommand() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SnowflakeImportCopyCommand class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Additional copy options + /// directly passed to snowflake Copy Command. Type: key value pairs + /// (value should be string type) (or Expression with resultType + /// object). Example: "additionalCopyOptions": { "DATE_FORMAT": + /// "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" } + /// Additional format options + /// directly passed to snowflake Copy Command. Type: key value pairs + /// (value should be string type) (or Expression with resultType + /// object). Example: "additionalFormatOptions": { "FORCE": "TRUE", + /// "LOAD_UNCERTAIN_FILES": "'FALSE'" } + public SnowflakeImportCopyCommand(IDictionary additionalProperties = default(IDictionary), IDictionary additionalCopyOptions = default(IDictionary), IDictionary additionalFormatOptions = default(IDictionary)) + : base(additionalProperties) + { + AdditionalCopyOptions = additionalCopyOptions; + AdditionalFormatOptions = additionalFormatOptions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets additional copy options directly passed to snowflake + /// Copy Command. Type: key value pairs (value should be string type) + /// (or Expression with resultType object). Example: + /// "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", + /// "TIME_FORMAT": "'HH24:MI:SS.FF'" } + /// + [JsonProperty(PropertyName = "additionalCopyOptions")] + public IDictionary AdditionalCopyOptions { get; set; } + + /// + /// Gets or sets additional format options directly passed to snowflake + /// Copy Command. Type: key value pairs (value should be string type) + /// (or Expression with resultType object). Example: + /// "additionalFormatOptions": { "FORCE": "TRUE", + /// "LOAD_UNCERTAIN_FILES": "'FALSE'" } + /// + [JsonProperty(PropertyName = "additionalFormatOptions")] + public IDictionary AdditionalFormatOptions { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeLinkedService.cs new file mode 100644 index 000000000000..ae74e2d1e7a1 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeLinkedService.cs @@ -0,0 +1,108 @@ +// +// 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. +// + +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; + + /// + /// Snowflake linked service. + /// + [Newtonsoft.Json.JsonObject("Snowflake")] + [Rest.Serialization.JsonTransformation] + public partial class SnowflakeLinkedService : LinkedService + { + /// + /// Initializes a new instance of the SnowflakeLinkedService class. + /// + public SnowflakeLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SnowflakeLinkedService class. + /// + /// The connection string of snowflake. + /// Type: string, SecureString. + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The Azure key vault secret reference of + /// password in connection string. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public SnowflakeLinkedService(object connectionString, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), AzureKeyVaultSecretReference password = default(AzureKeyVaultSecretReference), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + ConnectionString = connectionString; + Password = password; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the connection string of snowflake. Type: string, + /// SecureString. + /// + [JsonProperty(PropertyName = "typeProperties.connectionString")] + public object ConnectionString { get; set; } + + /// + /// Gets or sets the Azure key vault secret reference of password in + /// connection string. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public AzureKeyVaultSecretReference Password { get; set; } + + /// + /// 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). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (ConnectionString == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); + } + if (Password != null) + { + Password.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeSink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeSink.cs new file mode 100644 index 000000000000..862c7ba4c3fd --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeSink.cs @@ -0,0 +1,79 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity snowflake sink. + /// + public partial class SnowflakeSink : CopySink + { + /// + /// Initializes a new instance of the SnowflakeSink class. + /// + public SnowflakeSink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SnowflakeSink class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Write batch size. Type: integer (or + /// Expression with resultType integer), minimum: 0. + /// Write batch timeout. Type: string + /// (or Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Sink retry count. Type: integer (or + /// Expression with resultType integer). + /// Sink retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the sink data store. Type: integer (or + /// Expression with resultType integer). + /// SQL pre-copy script. Type: string (or + /// Expression with resultType string). + /// Snowflake import settings. + public SnowflakeSink(IDictionary additionalProperties = default(IDictionary), object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object preCopyScript = default(object), SnowflakeImportCopyCommand importSettings = default(SnowflakeImportCopyCommand)) + : base(additionalProperties, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections) + { + PreCopyScript = preCopyScript; + ImportSettings = importSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SQL pre-copy script. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "preCopyScript")] + public object PreCopyScript { get; set; } + + /// + /// Gets or sets snowflake import settings. + /// + [JsonProperty(PropertyName = "importSettings")] + public SnowflakeImportCopyCommand ImportSettings { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeSource.cs new file mode 100644 index 000000000000..7d8f0888a1e9 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SnowflakeSource.cs @@ -0,0 +1,74 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A copy activity snowflake source. + /// + public partial class SnowflakeSource : CopySource + { + /// + /// Initializes a new instance of the SnowflakeSource class. + /// + public SnowflakeSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SnowflakeSource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// Snowflake Sql query. Type: string (or + /// Expression with resultType string). + /// Snowflake export settings. + public SnowflakeSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object query = default(object), SnowflakeExportCopyCommand exportSettings = default(SnowflakeExportCopyCommand)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + Query = query; + ExportSettings = exportSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets snowflake Sql query. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "query")] + public object Query { get; set; } + + /// + /// Gets or sets snowflake export settings. + /// + [JsonProperty(PropertyName = "exportSettings")] + public SnowflakeExportCopyCommand ExportSettings { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SubResourceDebugResource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SubResourceDebugResource.cs new file mode 100644 index 000000000000..f9830f6a5d6e --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SubResourceDebugResource.cs @@ -0,0 +1,51 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure Data Factory nested debug resource. + /// + public partial class SubResourceDebugResource + { + /// + /// Initializes a new instance of the SubResourceDebugResource class. + /// + public SubResourceDebugResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SubResourceDebugResource class. + /// + /// The resource name. + public SubResourceDebugResource(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SwitchActivity.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SwitchActivity.cs new file mode 100644 index 000000000000..cb2c15419fb5 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SwitchActivity.cs @@ -0,0 +1,125 @@ +// +// 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. +// + +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; + + /// + /// This activity evaluates an expression and executes activities under the + /// cases property that correspond to the expression evaluation expected in + /// the equals property. + /// + [Newtonsoft.Json.JsonObject("Switch")] + [Rest.Serialization.JsonTransformation] + public partial class SwitchActivity : ControlActivity + { + /// + /// Initializes a new instance of the SwitchActivity class. + /// + public SwitchActivity() + { + On = new Expression(); + CustomInit(); + } + + /// + /// Initializes a new instance of the SwitchActivity class. + /// + /// Activity name. + /// An expression that would evaluate to a string or + /// integer. This is used to determine the block of activities in cases + /// that will be executed. + /// Unmatched properties from the + /// message are deserialized this collection + /// Activity description. + /// Activity depends on condition. + /// Activity user properties. + /// List of cases that correspond to expected + /// values of the 'on' property. This is an optional property and if + /// not provided, the activity will execute activities provided in + /// defaultActivities. + /// List of activities to execute if no + /// case condition is satisfied. This is an optional property and if + /// not provided, the activity will exit without any action. + public SwitchActivity(string name, Expression on, IDictionary additionalProperties = default(IDictionary), string description = default(string), IList dependsOn = default(IList), IList userProperties = default(IList), IList cases = default(IList), IList defaultActivities = default(IList)) + : base(name, additionalProperties, description, dependsOn, userProperties) + { + On = on; + Cases = cases; + DefaultActivities = defaultActivities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets an expression that would evaluate to a string or + /// integer. This is used to determine the block of activities in cases + /// that will be executed. + /// + [JsonProperty(PropertyName = "typeProperties.on")] + public Expression On { get; set; } + + /// + /// Gets or sets list of cases that correspond to expected values of + /// the 'on' property. This is an optional property and if not + /// provided, the activity will execute activities provided in + /// defaultActivities. + /// + [JsonProperty(PropertyName = "typeProperties.cases")] + public IList Cases { get; set; } + + /// + /// Gets or sets list of activities to execute if no case condition is + /// satisfied. This is an optional property and if not provided, the + /// activity will exit without any action. + /// + [JsonProperty(PropertyName = "typeProperties.defaultActivities")] + public IList DefaultActivities { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (On == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "On"); + } + if (On != null) + { + On.Validate(); + } + if (DefaultActivities != null) + { + foreach (var element in DefaultActivities) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SwitchCase.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SwitchCase.cs new file mode 100644 index 000000000000..f4ccad238623 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SwitchCase.cs @@ -0,0 +1,65 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Switch cases with have a value and corresponding activities. + /// + public partial class SwitchCase + { + /// + /// Initializes a new instance of the SwitchCase class. + /// + public SwitchCase() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwitchCase class. + /// + /// Expected value that satisfies the expression + /// result of the 'on' property. + /// List of activities to execute for + /// satisfied case condition. + public SwitchCase(string value = default(string), IList activities = default(IList)) + { + Value = value; + Activities = activities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets expected value that satisfies the expression result of + /// the 'on' property. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Gets or sets list of activities to execute for satisfied case + /// condition. + /// + [JsonProperty(PropertyName = "activities")] + public IList Activities { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TabularSource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TabularSource.cs new file mode 100644 index 000000000000..a93d25996034 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TabularSource.cs @@ -0,0 +1,80 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Copy activity sources of tabular type. + /// + public partial class TabularSource : CopySource + { + /// + /// Initializes a new instance of the TabularSource class. + /// + public TabularSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TabularSource class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Source retry count. Type: integer + /// (or Expression with resultType integer). + /// Source retry wait. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// The maximum concurrent + /// connection count for the source data store. Type: integer (or + /// Expression with resultType integer). + /// Query timeout. Type: string (or + /// Expression with resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// Specifies the additional columns to + /// be added to source data. Type: array of objects (or Expression with + /// resultType array of objects). + public TabularSource(IDictionary additionalProperties = default(IDictionary), object sourceRetryCount = default(object), object sourceRetryWait = default(object), object maxConcurrentConnections = default(object), object queryTimeout = default(object), IList additionalColumns = default(IList)) + : base(additionalProperties, sourceRetryCount, sourceRetryWait, maxConcurrentConnections) + { + QueryTimeout = queryTimeout; + AdditionalColumns = additionalColumns; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets query timeout. Type: string (or Expression with + /// resultType string), pattern: + /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + /// + [JsonProperty(PropertyName = "queryTimeout")] + public object QueryTimeout { get; set; } + + /// + /// Gets or sets specifies the additional columns to be added to source + /// data. Type: array of objects (or Expression with resultType array + /// of objects). + /// + [JsonProperty(PropertyName = "additionalColumns")] + public IList AdditionalColumns { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Transformation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Transformation.cs new file mode 100644 index 000000000000..08f3df869cf6 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Transformation.cs @@ -0,0 +1,73 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A data flow transformation. + /// + public partial class Transformation + { + /// + /// Initializes a new instance of the Transformation class. + /// + public Transformation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Transformation class. + /// + /// Transformation name. + /// Transformation description. + public Transformation(string name, string description = default(string)) + { + Name = name; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets transformation name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets transformation description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerFilterParameters.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerFilterParameters.cs new file mode 100644 index 000000000000..96cd2858e1cd --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerFilterParameters.cs @@ -0,0 +1,63 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Query parameters for triggers. + /// + public partial class TriggerFilterParameters + { + /// + /// Initializes a new instance of the TriggerFilterParameters class. + /// + public TriggerFilterParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TriggerFilterParameters class. + /// + /// The continuation token for getting + /// the next page of results. Null for first page. + /// The name of the parent + /// TumblingWindowTrigger to get the child rerun triggers + public TriggerFilterParameters(string continuationToken = default(string), string parentTriggerName = default(string)) + { + ContinuationToken = continuationToken; + ParentTriggerName = parentTriggerName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the continuation token for getting the next page of + /// results. Null for first page. + /// + [JsonProperty(PropertyName = "continuationToken")] + public string ContinuationToken { get; set; } + + /// + /// Gets or sets the name of the parent TumblingWindowTrigger to get + /// the child rerun triggers + /// + [JsonProperty(PropertyName = "parentTriggerName")] + public string ParentTriggerName { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerQueryResponse.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerQueryResponse.cs new file mode 100644 index 000000000000..82615f3a500c --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerQueryResponse.cs @@ -0,0 +1,88 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A query of triggers. + /// + public partial class TriggerQueryResponse + { + /// + /// Initializes a new instance of the TriggerQueryResponse class. + /// + public TriggerQueryResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TriggerQueryResponse class. + /// + /// List of triggers. + /// The continuation token for getting + /// the next page of results, if any remaining results exist, null + /// otherwise. + public TriggerQueryResponse(IList value, string continuationToken = default(string)) + { + Value = value; + ContinuationToken = continuationToken; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of triggers. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + /// + /// Gets or sets the continuation token for getting the next page of + /// results, if any remaining results exist, null otherwise. + /// + [JsonProperty(PropertyName = "continuationToken")] + public string ContinuationToken { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + if (Value != null) + { + foreach (var element in Value) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} From e8f06f03f43ec70f946199a82d22afd2c7759d13 Mon Sep 17 00:00:00 2001 From: Hao Qian Date: Fri, 27 Mar 2020 16:45:30 +0800 Subject: [PATCH 7/8] txt --- eng/mgmt/mgmtmetadata/datafactory_resource-manager.txt | 10 +++++----- .../src/Generated/Models/SsisPackageLocation.cs | 3 ++- .../src/generate.ps1 | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/eng/mgmt/mgmtmetadata/datafactory_resource-manager.txt b/eng/mgmt/mgmtmetadata/datafactory_resource-manager.txt index 47a2b96f497c..24c22574702e 100644 --- a/eng/mgmt/mgmtmetadata/datafactory_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/datafactory_resource-manager.txt @@ -1,14 +1,14 @@ -Installing AutoRest version: latest +Installing AutoRest version: 2.0.4413 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:\azure-sdk-for-net\sdk -2020-02-24 03:32:36 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=2.0.4413 --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=D:\azure-sdk-for-net\sdk +2020-03-27 08:23:49 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 7e6f562210b6223a186d22ed3d7f2b38e4efdfe2 +Commit: 3abe2ea4c7569ae4b2508a5642b27424a5a5da72 AutoRest information -Requested version: latest +Requested version: 2.0.4413 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs index efca18bdda9a..0c6083576c94 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs @@ -54,7 +54,7 @@ public SSISPackageLocation() /// modified date. /// The embedded child package /// list. - 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 childPackages = default(IList), SSISAccessCredential configurationAccessCredential = default(SSISAccessCredential)) + public SSISPackageLocation(object packagePath = default(object), string type = default(string), SecretBase packagePassword = default(SecretBase), SSISAccessCredential accessCredential = default(SSISAccessCredential), object configurationPath = default(object), SSISAccessCredential configurationAccessCredential = default(SSISAccessCredential), string packageName = default(string), object packageContent = default(object), string packageLastModifiedDate = default(string), IList childPackages = default(IList)) { PackagePath = packagePath; Type = type; @@ -113,6 +113,7 @@ public SSISPackageLocation() [JsonProperty(PropertyName = "typeProperties.configurationAccessCredential")] public SSISAccessCredential ConfigurationAccessCredential { get; set; } + /// /// Gets or sets the package name. /// [JsonProperty(PropertyName = "typeProperties.packageName")] diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/generate.ps1 b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/generate.ps1 index b3d210f78cd9..7b2e98d8550d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/generate.ps1 +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/generate.ps1 @@ -1 +1 @@ -Start-AutoRestCodeGeneration -ResourceProvider "datafactory/resource-manager" -AutoRestVersion "latest" -ConfigFileTag "package-2018-06" +Start-AutoRestCodeGeneration -ResourceProvider "datafactory/resource-manager" -AutoRestVersion "2.0.4413" -ConfigFileTag "package-2018-06" From 43d83d8f04a9beabd02c1ed1c79f35b31d807d6b Mon Sep 17 00:00:00 2001 From: Hao Qian Date: Wed, 1 Apr 2020 12:55:40 +0800 Subject: [PATCH 8/8] update csproj --- .../src/Microsoft.Azure.Management.DataFactory.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj index a31a86dca7c1..99a00a91fb34 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Microsoft.Azure.Management.DataFactory.csproj @@ -11,6 +11,7 @@