From 77f5d3b5d2fbae17621ea124485788f496786758 Mon Sep 17 00:00:00 2001 From: soma-ms <84877933+soma-ms@users.noreply.github.com> Date: Thu, 12 Aug 2021 22:47:48 -0700 Subject: [PATCH] [Datafactory] Swagger change for Power Query (WranglingDataFlow) work (#15584) * [Datafactory] Add Wrangling dataflow models for Power Query * Fix spell check issue * Fix Lint errors --- .../2018-06-01/entityTypes/DataFlow.json | 64 +++++++++++++++++++ .../2018-06-01/entityTypes/Pipeline.json | 42 ++++++++++++ 2 files changed, 106 insertions(+) diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json index 63e8f1b14468..ded95ed5803a 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json @@ -96,6 +96,40 @@ } } }, + "WranglingDataFlow": { + "x-ms-discriminator-value": "WranglingDataFlow", + "description": "Power Query data flow.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DataFlow" + } + ], + "properties": { + "typeProperties": { + "description": "PowerQuery data flow type properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/PowerQueryTypeProperties" + } + } + }, + "PowerQueryTypeProperties": { + "description": "Power Query data flow type properties.", + "type": "object", + "properties": { + "sources": { + "type": "array", + "description": "List of sources in Power Query.", + "items": { + "$ref": "#/definitions/PowerQuerySource" + } + }, + "script": { + "type": "string", + "description": "Power query mashup script." + } + } + }, "Transformation": { "description": "A data flow transformation.", "type": "object", @@ -156,6 +190,36 @@ "$ref": "../datafactory.json#/definitions/LinkedServiceReference" } } + }, + "PowerQuerySource": { + "description": "Power query source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DataFlowSource" + } + ], + "properties": { + "script": { + "description": "source script.", + "type": "string" + } + } + }, + "PowerQuerySink": { + "description": "Power query sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DataFlowSink" + } + ], + "properties": { + "script": { + "description": "sink script.", + "type": "string" + } + } } } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json index 384bdf1ee640..1199916a76a4 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json @@ -7098,6 +7098,30 @@ "typeProperties" ] }, + "ExecuteWranglingDataflowActivity": { + "description": "Execute power query activity.", + "type": "object", + "x-ms-discriminator-value": "ExecuteWranglingDataflow", + "allOf": [ + { + "$ref": "#/definitions/Activity" + } + ], + "properties": { + "typeProperties": { + "x-ms-client-flatten": true, + "description": "Execute power query activity properties.", + "$ref": "#/definitions/ExecutePowerQueryActivityTypeProperties" + }, + "policy": { + "$ref": "#/definitions/ActivityPolicy", + "description": "Activity policy." + } + }, + "required": [ + "typeProperties" + ] + }, "ExecuteDataFlowActivityTypeProperties": { "description": "Execute data flow activity properties.", "properties": { @@ -7144,6 +7168,24 @@ "dataFlow" ] }, + "ExecutePowerQueryActivityTypeProperties": { + "description": "Execute power query data flow activity properties.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ExecuteDataFlowActivityTypeProperties" + } + ], + "properties": { + "sinks": { + "type": "object", + "description": "List of Power Query activity sinks mapped to a queryName.", + "additionalProperties": { + "$ref": "./DataFlow.json#/definitions/PowerQuerySink" + } + } + } + }, "SharePointOnlineListSource": { "description": "A copy activity source for sharePoint online list source.", "type": "object",