From a43fe29fca97971d67074e3f54ae46ac814998e2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 10 Nov 2021 00:17:07 +0000 Subject: [PATCH] CodeGen from PR 16724 in Azure/azure-rest-api-specs Merge 997f1317b88dad6840625dc2f9bcf67d59369b9c into f2e08ab373eb0e96b54920e89f9fc96d683355ca --- .../Generated/DataFactoryManagementClient.cs | 2 - .../src/Generated/Models/AmazonS3Dataset.cs | 4 ++ .../src/Generated/Models/AzureBlobDataset.cs | 4 ++ .../Generated/Models/AzureBlobFSDataset.cs | 4 ++ .../Models/AzureDataLakeStoreDataset.cs | 4 ++ .../src/Generated/Models/BinaryDataset.cs | 4 ++ .../src/Generated/Models/DataFlowSink.cs | 28 +-------- .../src/Generated/Models/DataFlowSource.cs | 28 +-------- .../Models/DatasetBZip2Compression.cs | 49 --------------- .../Generated/Models/DatasetCompression.cs | 36 ++++++++++- .../Models/DatasetDeflateCompression.cs | 57 ------------------ .../Models/DatasetGZipCompression.cs | 57 ------------------ .../Generated/Models/DatasetTarCompression.cs | 49 --------------- .../Models/DatasetTarGZipCompression.cs | 57 ------------------ .../Models/DatasetZipDeflateCompression.cs | 59 ------------------- .../src/Generated/Models/ExcelDataset.cs | 4 ++ .../src/Generated/Models/FileShareDataset.cs | 4 ++ .../src/Generated/Models/HttpDataset.cs | 4 ++ .../src/Generated/Models/JsonDataset.cs | 4 ++ .../src/Generated/Models/PipelineRun.cs | 6 +- .../src/Generated/Models/PowerQuerySink.cs | 6 +- .../src/Generated/Models/PowerQuerySource.cs | 6 +- ...kageLocation.cs => SSISPackageLocation.cs} | 0 .../src/Generated/Models/Transformation.cs | 26 +++++++- .../src/Generated/Models/XmlDataset.cs | 4 ++ .../SdkInfo_DataFactoryManagementClient.cs | 11 ---- 26 files changed, 116 insertions(+), 401 deletions(-) delete mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetBZip2Compression.cs delete mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDeflateCompression.cs delete mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetGZipCompression.cs delete mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetTarCompression.cs delete mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetTarGZipCompression.cs delete mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetZipDeflateCompression.cs rename sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/{SsisPackageLocation.cs => SSISPackageLocation.cs} (100%) diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs index 19ce57683f0c..a602715ee405 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/DataFactoryManagementClient.cs @@ -489,8 +489,6 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("authenticationType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("authenticationType")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AmazonS3Dataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AmazonS3Dataset.cs index 028fcc579833..5d74680462cd 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AmazonS3Dataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AmazonS3Dataset.cs @@ -156,6 +156,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "BucketName"); } + if (Compression != null) + { + Compression.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobDataset.cs index e13696f0183f..57cce1c0f889 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobDataset.cs @@ -140,6 +140,10 @@ public AzureBlobDataset() public override void Validate() { base.Validate(); + if (Compression != null) + { + Compression.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSDataset.cs index 9a7c919d0f02..13b9026beb35 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureBlobFSDataset.cs @@ -111,6 +111,10 @@ public AzureBlobFSDataset() public override void Validate() { base.Validate(); + if (Compression != null) + { + Compression.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreDataset.cs index 128e0edbcfa1..5e092b9a56ff 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/AzureDataLakeStoreDataset.cs @@ -109,6 +109,10 @@ public AzureDataLakeStoreDataset() public override void Validate() { base.Validate(); + if (Compression != null) + { + Compression.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 index e8dc76b61f04..78be5e1d668f 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinaryDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/BinaryDataset.cs @@ -93,6 +93,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Location"); } + if (Compression != null) + { + Compression.Validate(); + } } } } 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 index cf3617962274..ceb47cbb9b97 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSink.cs @@ -31,16 +31,14 @@ public DataFlowSink() /// /// Transformation name. /// Transformation description. - /// Flowlet Reference /// Dataset reference. /// Linked service reference. + /// Flowlet Reference /// Schema linked service /// reference. - public DataFlowSink(string name, string description = default(string), DataFlowReference flowlet = default(DataFlowReference), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference)) - : base(name, description, flowlet) + public DataFlowSink(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), DataFlowReference flowlet = default(DataFlowReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference)) + : base(name, description, dataset, linkedService, flowlet) { - Dataset = dataset; - LinkedService = linkedService; SchemaLinkedService = schemaLinkedService; CustomInit(); } @@ -50,18 +48,6 @@ public DataFlowSink() /// partial void CustomInit(); - /// - /// Gets or sets dataset reference. - /// - [JsonProperty(PropertyName = "dataset")] - public DatasetReference Dataset { get; set; } - - /// - /// Gets or sets linked service reference. - /// - [JsonProperty(PropertyName = "linkedService")] - public LinkedServiceReference LinkedService { get; set; } - /// /// Gets or sets schema linked service reference. /// @@ -77,14 +63,6 @@ public DataFlowSink() public override void Validate() { base.Validate(); - if (Dataset != null) - { - Dataset.Validate(); - } - if (LinkedService != null) - { - LinkedService.Validate(); - } if (SchemaLinkedService != null) { SchemaLinkedService.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 index fc8e3f0fc77b..d6ca33961443 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSource.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowSource.cs @@ -31,16 +31,14 @@ public DataFlowSource() /// /// Transformation name. /// Transformation description. - /// Flowlet Reference /// Dataset reference. /// Linked service reference. + /// Flowlet Reference /// Schema linked service /// reference. - public DataFlowSource(string name, string description = default(string), DataFlowReference flowlet = default(DataFlowReference), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference)) - : base(name, description, flowlet) + public DataFlowSource(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), DataFlowReference flowlet = default(DataFlowReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference)) + : base(name, description, dataset, linkedService, flowlet) { - Dataset = dataset; - LinkedService = linkedService; SchemaLinkedService = schemaLinkedService; CustomInit(); } @@ -50,18 +48,6 @@ public DataFlowSource() /// partial void CustomInit(); - /// - /// Gets or sets dataset reference. - /// - [JsonProperty(PropertyName = "dataset")] - public DatasetReference Dataset { get; set; } - - /// - /// Gets or sets linked service reference. - /// - [JsonProperty(PropertyName = "linkedService")] - public LinkedServiceReference LinkedService { get; set; } - /// /// Gets or sets schema linked service reference. /// @@ -77,14 +63,6 @@ public DataFlowSource() public override void Validate() { base.Validate(); - if (Dataset != null) - { - Dataset.Validate(); - } - if (LinkedService != null) - { - LinkedService.Validate(); - } if (SchemaLinkedService != null) { SchemaLinkedService.Validate(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetBZip2Compression.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetBZip2Compression.cs deleted file mode 100644 index 70519eaf4e8b..000000000000 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetBZip2Compression.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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 BZip2 compression method used on a dataset. - /// - [Newtonsoft.Json.JsonObject("BZip2")] - public partial class DatasetBZip2Compression : DatasetCompression - { - /// - /// Initializes a new instance of the DatasetBZip2Compression class. - /// - public DatasetBZip2Compression() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DatasetBZip2Compression class. - /// - /// Unmatched properties from the - /// message are deserialized this collection - public DatasetBZip2Compression(IDictionary additionalProperties = default(IDictionary)) - : base(additionalProperties) - { - 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/DatasetCompression.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetCompression.cs index 684c3a8a2b97..b074fe86b12d 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetCompression.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetCompression.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.DataFactory.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -31,11 +32,17 @@ public DatasetCompression() /// /// Initializes a new instance of the DatasetCompression class. /// + /// Type of dataset compression. Type: string (or + /// Expression with resultType string). /// Unmatched properties from the /// message are deserialized this collection - public DatasetCompression(IDictionary additionalProperties = default(IDictionary)) + /// The dataset compression level. Type: string (or + /// Expression with resultType string). + public DatasetCompression(object type, IDictionary additionalProperties = default(IDictionary), object level = default(object)) { AdditionalProperties = additionalProperties; + Type = type; + Level = level; CustomInit(); } @@ -51,5 +58,32 @@ public DatasetCompression() [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } + /// + /// Gets or sets type of dataset compression. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "type")] + public object Type { get; set; } + + /// + /// Gets or sets the dataset compression level. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "level")] + public object Level { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDeflateCompression.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDeflateCompression.cs deleted file mode 100644 index 69232c3caf14..000000000000 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDeflateCompression.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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 Deflate compression method used on a dataset. - /// - [Newtonsoft.Json.JsonObject("Deflate")] - public partial class DatasetDeflateCompression : DatasetCompression - { - /// - /// Initializes a new instance of the DatasetDeflateCompression class. - /// - public DatasetDeflateCompression() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DatasetDeflateCompression class. - /// - /// Unmatched properties from the - /// message are deserialized this collection - /// The Deflate compression level. - public DatasetDeflateCompression(IDictionary additionalProperties = default(IDictionary), object level = default(object)) - : base(additionalProperties) - { - Level = level; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Deflate compression level. - /// - [JsonProperty(PropertyName = "level")] - public object Level { get; set; } - - } -} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetGZipCompression.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetGZipCompression.cs deleted file mode 100644 index cdc058594604..000000000000 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetGZipCompression.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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 GZip compression method used on a dataset. - /// - [Newtonsoft.Json.JsonObject("GZip")] - public partial class DatasetGZipCompression : DatasetCompression - { - /// - /// Initializes a new instance of the DatasetGZipCompression class. - /// - public DatasetGZipCompression() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DatasetGZipCompression class. - /// - /// Unmatched properties from the - /// message are deserialized this collection - /// The GZip compression level. - public DatasetGZipCompression(IDictionary additionalProperties = default(IDictionary), object level = default(object)) - : base(additionalProperties) - { - Level = level; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the GZip compression level. - /// - [JsonProperty(PropertyName = "level")] - public object Level { get; set; } - - } -} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetTarCompression.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetTarCompression.cs deleted file mode 100644 index 4b1fac814a0f..000000000000 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetTarCompression.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// 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 Tar archive method used on a dataset. - /// - [Newtonsoft.Json.JsonObject("Tar")] - public partial class DatasetTarCompression : DatasetCompression - { - /// - /// Initializes a new instance of the DatasetTarCompression class. - /// - public DatasetTarCompression() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DatasetTarCompression class. - /// - /// Unmatched properties from the - /// message are deserialized this collection - public DatasetTarCompression(IDictionary additionalProperties = default(IDictionary)) - : base(additionalProperties) - { - 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/DatasetTarGZipCompression.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetTarGZipCompression.cs deleted file mode 100644 index e8fa46e3cd99..000000000000 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetTarGZipCompression.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// 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 TarGZip compression method used on a dataset. - /// - [Newtonsoft.Json.JsonObject("TarGZip")] - public partial class DatasetTarGZipCompression : DatasetCompression - { - /// - /// Initializes a new instance of the DatasetTarGZipCompression class. - /// - public DatasetTarGZipCompression() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DatasetTarGZipCompression class. - /// - /// Unmatched properties from the - /// message are deserialized this collection - /// The TarGZip compression level. - public DatasetTarGZipCompression(IDictionary additionalProperties = default(IDictionary), object level = default(object)) - : base(additionalProperties) - { - Level = level; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the TarGZip compression level. - /// - [JsonProperty(PropertyName = "level")] - public object Level { get; set; } - - } -} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetZipDeflateCompression.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetZipDeflateCompression.cs deleted file mode 100644 index 84892246fb67..000000000000 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetZipDeflateCompression.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -// 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 ZipDeflate compression method used on a dataset. - /// - [Newtonsoft.Json.JsonObject("ZipDeflate")] - public partial class DatasetZipDeflateCompression : DatasetCompression - { - /// - /// Initializes a new instance of the DatasetZipDeflateCompression - /// class. - /// - public DatasetZipDeflateCompression() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DatasetZipDeflateCompression - /// class. - /// - /// Unmatched properties from the - /// message are deserialized this collection - /// The ZipDeflate compression level. - public DatasetZipDeflateCompression(IDictionary additionalProperties = default(IDictionary), object level = default(object)) - : base(additionalProperties) - { - Level = level; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the ZipDeflate compression level. - /// - [JsonProperty(PropertyName = "level")] - public object Level { get; set; } - - } -} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExcelDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExcelDataset.cs index 694dba9ab678..def09cafb570 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExcelDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExcelDataset.cs @@ -147,6 +147,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Location"); } + if (Compression != null) + { + Compression.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileShareDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileShareDataset.cs index f421c0179093..4092839f59cf 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileShareDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/FileShareDataset.cs @@ -142,6 +142,10 @@ public FileShareDataset() public override void Validate() { base.Validate(); + if (Compression != null) + { + Compression.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/HttpDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/HttpDataset.cs index b28fce9a0d0a..52fe8c10b74b 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/HttpDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/HttpDataset.cs @@ -136,6 +136,10 @@ public HttpDataset() public override void Validate() { base.Validate(); + if (Compression != null) + { + Compression.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonDataset.cs index 7f654d6c41f5..70ac15dc9f38 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/JsonDataset.cs @@ -111,6 +111,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Location"); } + if (Compression != null) + { + Compression.Validate(); + } } } } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineRun.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineRun.cs index f1d431a01efa..4a1eaa4c8bde 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineRun.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineRun.cs @@ -52,7 +52,8 @@ public PipelineRun() /// The end time of a pipeline run in ISO8601 /// format. /// The duration of a pipeline run. - /// The status of a pipeline run. + /// The status of a pipeline run. Possible values: + /// Queued, InProgress, Succeeded, Failed, Canceling, Cancelled /// The message from a pipeline run. public PipelineRun(IDictionary additionalProperties = default(IDictionary), string runId = default(string), string runGroupId = default(string), bool? isLatest = default(bool?), string pipelineName = default(string), IDictionary parameters = default(IDictionary), IDictionary runDimensions = default(IDictionary), PipelineRunInvokedBy invokedBy = default(PipelineRunInvokedBy), System.DateTime? lastUpdated = default(System.DateTime?), System.DateTime? runStart = default(System.DateTime?), System.DateTime? runEnd = default(System.DateTime?), int? durationInMs = default(int?), string status = default(string), string message = default(string)) { @@ -156,7 +157,8 @@ public PipelineRun() public int? DurationInMs { get; private set; } /// - /// Gets the status of a pipeline run. + /// Gets the status of a pipeline run. Possible values: Queued, + /// InProgress, Succeeded, Failed, Canceling, Cancelled /// [JsonProperty(PropertyName = "status")] public string Status { get; private set; } diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySink.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySink.cs index 27de41df387e..849907231ece 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySink.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySink.cs @@ -31,14 +31,14 @@ public PowerQuerySink() /// /// Transformation name. /// Transformation description. - /// Flowlet Reference /// Dataset reference. /// Linked service reference. + /// Flowlet Reference /// Schema linked service /// reference. /// sink script. - public PowerQuerySink(string name, string description = default(string), DataFlowReference flowlet = default(DataFlowReference), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference), string script = default(string)) - : base(name, description, flowlet, dataset, linkedService, schemaLinkedService) + public PowerQuerySink(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), DataFlowReference flowlet = default(DataFlowReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference), string script = default(string)) + : base(name, description, dataset, linkedService, flowlet, schemaLinkedService) { Script = script; CustomInit(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySource.cs index 4dbe1612c490..861e276246b2 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySource.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySource.cs @@ -31,14 +31,14 @@ public PowerQuerySource() /// /// Transformation name. /// Transformation description. - /// Flowlet Reference /// Dataset reference. /// Linked service reference. + /// Flowlet Reference /// Schema linked service /// reference. /// source script. - public PowerQuerySource(string name, string description = default(string), DataFlowReference flowlet = default(DataFlowReference), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference), string script = default(string)) - : base(name, description, flowlet, dataset, linkedService, schemaLinkedService) + public PowerQuerySource(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), DataFlowReference flowlet = default(DataFlowReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference), string script = default(string)) + : base(name, description, dataset, linkedService, flowlet, schemaLinkedService) { Script = script; CustomInit(); 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 similarity index 100% rename from sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs rename to sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISPackageLocation.cs 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 index 14b35526747d..e5f68a51a657 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Transformation.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Transformation.cs @@ -32,11 +32,15 @@ public Transformation() /// /// Transformation name. /// Transformation description. + /// Dataset reference. + /// Linked service reference. /// Flowlet Reference - public Transformation(string name, string description = default(string), DataFlowReference flowlet = default(DataFlowReference)) + public Transformation(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), DataFlowReference flowlet = default(DataFlowReference)) { Name = name; Description = description; + Dataset = dataset; + LinkedService = linkedService; Flowlet = flowlet; CustomInit(); } @@ -58,6 +62,18 @@ public Transformation() [JsonProperty(PropertyName = "description")] public string Description { get; set; } + /// + /// Gets or sets dataset reference. + /// + [JsonProperty(PropertyName = "dataset")] + public DatasetReference Dataset { get; set; } + + /// + /// Gets or sets linked service reference. + /// + [JsonProperty(PropertyName = "linkedService")] + public LinkedServiceReference LinkedService { get; set; } + /// /// Gets or sets flowlet Reference /// @@ -76,6 +92,14 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Name"); } + if (Dataset != null) + { + Dataset.Validate(); + } + if (LinkedService != null) + { + LinkedService.Validate(); + } if (Flowlet != null) { Flowlet.Validate(); diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/XmlDataset.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/XmlDataset.cs index 81ec8e31953d..e631ec0d8da0 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/XmlDataset.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/XmlDataset.cs @@ -121,6 +121,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Location"); } + if (Compression != null) + { + Compression.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 index fcaa64287cb3..ac665f5acd05 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs @@ -43,16 +43,5 @@ public static IEnumerable> ApiInfo_DataFactoryMana }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=D:\\Projects\\azure-sdk-for-net-1\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "2a8a9a79b23c72c6092d5b1212acf6d69b1b3850"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -