From e5aab213b1b4830f982cb34c381813ae5c057582 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 14 Oct 2021 23:53:34 +0000 Subject: [PATCH] CodeGen from PR 16394 in Azure/azure-rest-api-specs Merge f05ce21e79151e76917a804b59fd87dc400d96f1 into 7e6be1c9e6c04f932795cb114599e9b5b0c90d0a --- .../Generated/Models/DataFlowDebugPackage.cs | 28 ++++- .../src/Generated/Models/DataFlowSink.cs | 27 +---- .../src/Generated/Models/DataFlowSource.cs | 27 +---- .../src/Generated/Models/Flowlet.cs | 111 ++++++++++++++++++ .../src/Generated/Models/MappingDataFlow.cs | 10 +- .../src/Generated/Models/PowerQuerySink.cs | 5 +- .../src/Generated/Models/PowerQuerySource.cs | 5 +- ...kageLocation.cs => SSISPackageLocation.cs} | 0 .../src/Generated/Models/Transformation.cs | 38 +++++- .../SdkInfo_DataFactoryManagementClient.cs | 11 -- 10 files changed, 192 insertions(+), 70 deletions(-) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Flowlet.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/Models/DataFlowDebugPackage.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackage.cs index c6dc85624f26..32e44a94be82 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackage.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugPackage.cs @@ -35,15 +35,17 @@ public DataFlowDebugPackage() /// message are deserialized this collection /// The ID of data flow debug session. /// Data flow instance. + /// List of Data flows /// 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)) + public DataFlowDebugPackage(IDictionary additionalProperties = default(IDictionary), string sessionId = default(string), DataFlowDebugResource dataFlow = default(DataFlowDebugResource), IList dataFlows = default(IList), IList datasets = default(IList), IList linkedServices = default(IList), DataFlowStagingInfo staging = default(DataFlowStagingInfo), DataFlowDebugPackageDebugSettings debugSettings = default(DataFlowDebugPackageDebugSettings)) { AdditionalProperties = additionalProperties; SessionId = sessionId; DataFlow = dataFlow; + DataFlows = dataFlows; Datasets = datasets; LinkedServices = linkedServices; Staging = staging; @@ -75,6 +77,12 @@ public DataFlowDebugPackage() [JsonProperty(PropertyName = "dataFlow")] public DataFlowDebugResource DataFlow { get; set; } + /// + /// Gets or sets list of Data flows + /// + [JsonProperty(PropertyName = "dataFlows")] + public IList DataFlows { get; set; } + /// /// Gets or sets list of datasets. /// @@ -111,9 +119,9 @@ public virtual void Validate() { DataFlow.Validate(); } - if (Datasets != null) + if (DataFlows != null) { - foreach (var element in Datasets) + foreach (var element in DataFlows) { if (element != null) { @@ -121,9 +129,9 @@ public virtual void Validate() } } } - if (LinkedServices != null) + if (Datasets != null) { - foreach (var element1 in LinkedServices) + foreach (var element1 in Datasets) { if (element1 != null) { @@ -131,6 +139,16 @@ public virtual void Validate() } } } + if (LinkedServices != null) + { + foreach (var element2 in LinkedServices) + { + if (element2 != null) + { + element2.Validate(); + } + } + } if (Staging != null) { Staging.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 7fde44a13732..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 @@ -33,13 +33,12 @@ public DataFlowSink() /// Transformation description. /// Dataset reference. /// Linked service reference. + /// Flowlet Reference /// Schema linked service /// reference. - public DataFlowSink(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference)) - : base(name, description) + 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(); } @@ -49,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. /// @@ -76,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 838e69cc4a25..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 @@ -33,13 +33,12 @@ public DataFlowSource() /// Transformation description. /// Dataset reference. /// Linked service reference. + /// Flowlet Reference /// Schema linked service /// reference. - public DataFlowSource(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference)) - : base(name, description) + 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(); } @@ -49,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. /// @@ -76,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/Flowlet.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Flowlet.cs new file mode 100644 index 000000000000..a21237d14fae --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/Flowlet.cs @@ -0,0 +1,111 @@ +// +// 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; + + /// + /// Data flow flowlet + /// + [Rest.Serialization.JsonTransformation] + public partial class Flowlet : DataFlow + { + /// + /// Initializes a new instance of the Flowlet class. + /// + public Flowlet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Flowlet 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. + /// Unmatched properties from the + /// message are deserialized this collection + /// List of sources in Flowlet. + /// List of sinks in Flowlet. + /// List of transformations in + /// Flowlet. + /// Flowlet script. + /// Flowlet script lines. + public Flowlet(string description = default(string), IList annotations = default(IList), DataFlowFolder folder = default(DataFlowFolder), IDictionary additionalProperties = default(IDictionary), IList sources = default(IList), IList sinks = default(IList), IList transformations = default(IList), string script = default(string), IList scriptLines = default(IList), object additionalProperties1 = default(object)) + : base(description, annotations, folder) + { + AdditionalProperties = additionalProperties; + Sources = sources; + Sinks = sinks; + Transformations = transformations; + Script = script; + ScriptLines = scriptLines; + AdditionalProperties1 = additionalProperties1; + 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 list of sources in Flowlet. + /// + [JsonProperty(PropertyName = "typeProperties.sources")] + public IList Sources { get; set; } + + /// + /// Gets or sets list of sinks in Flowlet. + /// + [JsonProperty(PropertyName = "typeProperties.sinks")] + public IList Sinks { get; set; } + + /// + /// Gets or sets list of transformations in Flowlet. + /// + [JsonProperty(PropertyName = "typeProperties.transformations")] + public IList Transformations { get; set; } + + /// + /// Gets or sets flowlet script. + /// + [JsonProperty(PropertyName = "typeProperties.script")] + public string Script { get; set; } + + /// + /// Gets or sets flowlet script lines. + /// + [JsonProperty(PropertyName = "typeProperties.scriptLines")] + public IList ScriptLines { get; set; } + + /// + /// + [JsonProperty(PropertyName = "typeProperties.additionalProperties")] + public object AdditionalProperties1 { get; set; } + + } +} 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 index 5cb562ed6281..3c9753de681a 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MappingDataFlow.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/MappingDataFlow.cs @@ -44,13 +44,15 @@ public MappingDataFlow() /// 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)) + /// Data flow script lines. + 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), IList scriptLines = default(IList)) : base(description, annotations, folder) { Sources = sources; Sinks = sinks; Transformations = transformations; Script = script; + ScriptLines = scriptLines; CustomInit(); } @@ -83,5 +85,11 @@ public MappingDataFlow() [JsonProperty(PropertyName = "typeProperties.script")] public string Script { get; set; } + /// + /// Gets or sets data flow script lines. + /// + [JsonProperty(PropertyName = "typeProperties.scriptLines")] + public IList ScriptLines { get; 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 9831a8d23085..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 @@ -33,11 +33,12 @@ public PowerQuerySink() /// Transformation description. /// Dataset reference. /// Linked service reference. + /// Flowlet Reference /// Schema linked service /// reference. /// sink script. - public PowerQuerySink(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference), string script = default(string)) - : base(name, description, 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 7d561f475ae4..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 @@ -33,11 +33,12 @@ public PowerQuerySource() /// Transformation description. /// Dataset reference. /// Linked service reference. + /// Flowlet Reference /// Schema linked service /// reference. /// source script. - public PowerQuerySource(string name, string description = default(string), DatasetReference dataset = default(DatasetReference), LinkedServiceReference linkedService = default(LinkedServiceReference), LinkedServiceReference schemaLinkedService = default(LinkedServiceReference), string script = default(string)) - : base(name, description, 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 08f3df869cf6..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,10 +32,16 @@ public Transformation() /// /// Transformation name. /// Transformation description. - public Transformation(string name, string description = default(string)) + /// Dataset reference. + /// Linked service reference. + /// Flowlet Reference + 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(); } @@ -56,6 +62,24 @@ 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 + /// + [JsonProperty(PropertyName = "flowlet")] + public DataFlowReference Flowlet { get; set; } + /// /// Validate the object. /// @@ -68,6 +92,18 @@ 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/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 } } -