From 1a60074a53fe17d174cb9eb01dabdb6af6c720db Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 19 Aug 2021 07:26:39 +0000 Subject: [PATCH] CodeGen from PR 15711 in Azure/azure-rest-api-specs Merge 9778e33994dbda11e3bd6fc8eea86ed88d7d6055 into 30d1537f0c9aa49e6e04401b1d16f612b31231e7 --- .../ExecuteWranglingDataflowActivity.cs | 190 ++++++++++++++++++ .../src/Generated/Models/PowerQuerySink.cs | 68 +++++++ .../src/Generated/Models/PowerQuerySource.cs | 68 +++++++ ...kageLocation.cs => SSISPackageLocation.cs} | 0 .../src/Generated/Models/WranglingDataFlow.cs | 70 +++++++ .../SdkInfo_DataFactoryManagementClient.cs | 11 - 6 files changed, 396 insertions(+), 11 deletions(-) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySink.cs create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySource.cs rename sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/{SsisPackageLocation.cs => SSISPackageLocation.cs} (100%) create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/WranglingDataFlow.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs new file mode 100644 index 000000000000..6f66212d22e8 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs @@ -0,0 +1,190 @@ +// +// 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 power query activity. + /// + [Newtonsoft.Json.JsonObject("ExecuteWranglingDataflow")] + [Rest.Serialization.JsonTransformation] + public partial class ExecuteWranglingDataflowActivity : Activity + { + /// + /// Initializes a new instance of the ExecuteWranglingDataflowActivity + /// class. + /// + public ExecuteWranglingDataflowActivity() + { + DataFlow = new DataFlowReference(); + CustomInit(); + } + + /// + /// Initializes a new instance of the ExecuteWranglingDataflowActivity + /// class. + /// + /// Activity name. + /// Data flow reference. + /// Unmatched properties from the + /// message are deserialized this collection + /// Activity description. + /// Activity depends on condition. + /// Activity user properties. + /// Staging info for execute data flow + /// activity. + /// The integration runtime + /// reference. + /// Compute properties for data flow + /// activity. + /// Trace level setting used for data flow + /// monitoring output. Supported values are: 'coarse', 'fine', and + /// 'none'. Type: string (or Expression with resultType string) + /// Continue on error setting used for + /// data flow execution. Enables processing to continue if a sink + /// fails. Type: boolean (or Expression with resultType + /// boolean) + /// Concurrent run setting used for data + /// flow execution. Allows sinks with the same save order to be + /// processed concurrently. Type: boolean (or Expression with + /// resultType boolean) + /// List of Power Query activity sinks mapped to a + /// queryName. + /// Activity policy. + public ExecuteWranglingDataflowActivity(string name, DataFlowReference dataFlow, IDictionary additionalProperties = default(IDictionary), string description = default(string), IList dependsOn = default(IList), IList userProperties = default(IList), DataFlowStagingInfo staging = default(DataFlowStagingInfo), IntegrationRuntimeReference integrationRuntime = default(IntegrationRuntimeReference), ExecuteDataFlowActivityTypePropertiesCompute compute = default(ExecuteDataFlowActivityTypePropertiesCompute), object traceLevel = default(object), object continueOnError = default(object), object runConcurrently = default(object), IDictionary sinks = default(IDictionary), ActivityPolicy policy = default(ActivityPolicy)) + : base(name, additionalProperties, description, dependsOn, userProperties) + { + DataFlow = dataFlow; + Staging = staging; + IntegrationRuntime = integrationRuntime; + Compute = compute; + TraceLevel = traceLevel; + ContinueOnError = continueOnError; + RunConcurrently = runConcurrently; + Sinks = sinks; + Policy = policy; + 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; } + + /// + /// Gets or sets trace level setting used for data flow monitoring + /// output. Supported values are: 'coarse', 'fine', and 'none'. Type: + /// string (or Expression with resultType string) + /// + [JsonProperty(PropertyName = "typeProperties.traceLevel")] + public object TraceLevel { get; set; } + + /// + /// Gets or sets continue on error setting used for data flow + /// execution. Enables processing to continue if a sink fails. Type: + /// boolean (or Expression with resultType boolean) + /// + [JsonProperty(PropertyName = "typeProperties.continueOnError")] + public object ContinueOnError { get; set; } + + /// + /// Gets or sets concurrent run setting used for data flow execution. + /// Allows sinks with the same save order to be processed concurrently. + /// Type: boolean (or Expression with resultType boolean) + /// + [JsonProperty(PropertyName = "typeProperties.runConcurrently")] + public object RunConcurrently { get; set; } + + /// + /// Gets or sets list of Power Query activity sinks mapped to a + /// queryName. + /// + [JsonProperty(PropertyName = "typeProperties.sinks")] + public IDictionary Sinks { get; set; } + + /// + /// Gets or sets activity policy. + /// + [JsonProperty(PropertyName = "policy")] + public ActivityPolicy Policy { 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(); + } + if (Sinks != null) + { + foreach (var valueElement in Sinks.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + if (Policy != null) + { + Policy.Validate(); + } + } + } +} 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 new file mode 100644 index 000000000000..9831a8d23085 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySink.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; + + /// + /// Power query sink. + /// + public partial class PowerQuerySink : DataFlowSink + { + /// + /// Initializes a new instance of the PowerQuerySink class. + /// + public PowerQuerySink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PowerQuerySink class. + /// + /// Transformation name. + /// Transformation description. + /// Dataset reference. + /// Linked service 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) + { + Script = script; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets sink script. + /// + [JsonProperty(PropertyName = "script")] + public string Script { 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/PowerQuerySource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySource.cs new file mode 100644 index 000000000000..7d561f475ae4 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PowerQuerySource.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; + + /// + /// Power query source. + /// + public partial class PowerQuerySource : DataFlowSource + { + /// + /// Initializes a new instance of the PowerQuerySource class. + /// + public PowerQuerySource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PowerQuerySource class. + /// + /// Transformation name. + /// Transformation description. + /// Dataset reference. + /// Linked service 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) + { + Script = script; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets source script. + /// + [JsonProperty(PropertyName = "script")] + public string Script { 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/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/WranglingDataFlow.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/WranglingDataFlow.cs new file mode 100644 index 000000000000..aad4c5a477ba --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/WranglingDataFlow.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 Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Power Query data flow. + /// + [Rest.Serialization.JsonTransformation] + public partial class WranglingDataFlow : DataFlow + { + /// + /// Initializes a new instance of the WranglingDataFlow class. + /// + public WranglingDataFlow() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WranglingDataFlow 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 Power Query. + /// Power query mashup script. + public WranglingDataFlow(string description = default(string), IList annotations = default(IList), DataFlowFolder folder = default(DataFlowFolder), IList sources = default(IList), string script = default(string)) + : base(description, annotations, folder) + { + Sources = sources; + Script = script; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of sources in Power Query. + /// + [JsonProperty(PropertyName = "typeProperties.sources")] + public IList Sources { get; set; } + + /// + /// Gets or sets power query mashup script. + /// + [JsonProperty(PropertyName = "typeProperties.script")] + public string Script { get; set; } + + } +} 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 } } -