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 1bbe83bbe342..4943c38da86a 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 @@ -7363,6 +7363,152 @@ } } }, + "ScriptActivity": { + "description": "Script activity type.", + "x-ms-discriminator-value": "Script", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ExecutionActivity" + } + ], + "properties": { + "typeProperties": { + "x-ms-client-flatten": true, + "description": "Script activity properties.", + "$ref": "#/definitions/ScriptActivityTypeProperties" + } + }, + "required": [ + "typeProperties", + "linkedServiceName" + ] + }, + "ScriptActivityTypeProperties": { + "description": "Script activity properties.", + "type": "object", + "properties": { + "scripts": { + "type": "array", + "description": "Array of script blocks. Type: array.", + "items": { + "$ref": "#/definitions/ScriptActivityScriptBlock" + } + }, + "logSettings": { + "description": "Log settings of script activity.", + "type": "object", + "properties": { + "logDestination": { + "x-ms-enum": { + "name": "ScriptActivityLogDestination", + "modelAsString": true + }, + "enum": [ + "ActivityOutput", + "ExternalStore" + ], + "type": "string", + "description": "The destination of logs. Type: string." + }, + "logLocationSettings": { + "description": "Log location settings customer needs to provide when enabling log.", + "$ref": "#/definitions/LogLocationSettings" + } + }, + "required": [ + "logDestination" + ] + } + } + }, + "ScriptActivityScriptBlock": { + "description": "Script block of scripts.", + "type": "object", + "properties": { + "text": { + "type": "object", + "description": "The query text. Type: string (or Expression with resultType string)." + }, + "type": { + "x-ms-enum": { + "name": "ScriptType", + "modelAsString": true + }, + "enum": [ + "Query", + "NonQuery" + ], + "type": "string", + "description": "The type of the query. Type: string." + }, + "parameters": { + "type": "array", + "description": "Array of script parameters. Type: array.", + "items": { + "$ref": "#/definitions/ScriptActivityParameter" + } + } + }, + "required": [ + "text", + "type" + ] + }, + "ScriptActivityParameter": { + "description": "Parameters of a script block.", + "type": "object", + "properties": { + "name": { + "type": "object", + "description": "The name of the parameter. Type: string (or Expression with resultType string)." + }, + "type": { + "description": "The type of the parameter.", + "type": "string", + "enum": [ + "Boolean", + "DateTime", + "DateTimeOffset", + "Decimal", + "Double", + "Guid", + "Int16", + "Int32", + "Int64", + "Single", + "String", + "Timespan" + ], + "x-ms-enum": { + "name": "ScriptActivityParameterType", + "modelAsString": true + } + }, + "value": { + "description": "The value of the parameter.", + "type": "object" + }, + "direction": { + "description": "The direction of the parameter.", + "type": "string", + "enum": [ + "Input", + "Output", + "InputOutput" + ], + "x-ms-enum": { + "name": "ScriptActivityParameterDirection", + "modelAsString": true + } + }, + "size": { + "description": "The size of the output direction parameter.", + "type": "integer", + "format": "int32" + } + } + }, "SharePointOnlineListSource": { "description": "A copy activity source for sharePoint online list source.", "type": "object", diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Pipeline.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Pipeline.json index 7c9801518e66..790078c907cf 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Pipeline.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Pipeline.json @@ -7050,6 +7050,152 @@ "dataflow" ] }, + "ScriptActivity": { + "description": "Script activity type.", + "x-ms-discriminator-value": "Script", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ExecutionActivity" + } + ], + "properties": { + "typeProperties": { + "x-ms-client-flatten": true, + "description": "Script activity properties.", + "$ref": "#/definitions/ScriptActivityTypeProperties" + } + }, + "required": [ + "typeProperties", + "linkedServiceName" + ] + }, + "ScriptActivityTypeProperties": { + "description": "Script activity properties.", + "type": "object", + "properties": { + "scripts": { + "type": "array", + "description": "Array of script blocks. Type: array.", + "items": { + "$ref": "#/definitions/ScriptActivityScriptBlock" + } + }, + "logSettings": { + "description": "Log settings of script activity.", + "type": "object", + "properties": { + "logDestination": { + "x-ms-enum": { + "name": "ScriptActivityLogDestination", + "modelAsString": true + }, + "enum": [ + "ActivityOutput", + "ExternalStore" + ], + "type": "string", + "description": "The destination of logs. Type: string." + }, + "logLocationSettings": { + "description": "Log location settings customer needs to provide when enabling log.", + "$ref": "#/definitions/LogLocationSettings" + } + }, + "required": [ + "logDestination" + ] + } + } + }, + "ScriptActivityScriptBlock": { + "description": "Script block of scripts.", + "type": "object", + "properties": { + "text": { + "type": "object", + "description": "The query text. Type: string (or Expression with resultType string)." + }, + "type": { + "x-ms-enum": { + "name": "ScriptType", + "modelAsString": true + }, + "enum": [ + "Query", + "NonQuery" + ], + "type": "string", + "description": "The type of the query. Type: string." + }, + "parameters": { + "type": "array", + "description": "Array of script parameters. Type: array.", + "items": { + "$ref": "#/definitions/ScriptActivityParameter" + } + } + }, + "required": [ + "text", + "type" + ] + }, + "ScriptActivityParameter": { + "description": "Parameters of a script block.", + "type": "object", + "properties": { + "name": { + "type": "object", + "description": "The name of the parameter. Type: string (or Expression with resultType string)." + }, + "type": { + "description": "The type of the parameter.", + "type": "string", + "enum": [ + "Boolean", + "DateTime", + "DateTimeOffset", + "Decimal", + "Double", + "Guid", + "Int16", + "Int32", + "Int64", + "Single", + "String", + "Timespan" + ], + "x-ms-enum": { + "name": "ScriptActivityParameterType", + "modelAsString": true + } + }, + "value": { + "description": "The value of the parameter.", + "type": "object" + }, + "direction": { + "description": "The direction of the parameter.", + "type": "string", + "enum": [ + "Input", + "Output", + "InputOutput" + ], + "x-ms-enum": { + "name": "ScriptActivityParameterDirection", + "modelAsString": true + } + }, + "size": { + "description": "The size of the output direction parameter.", + "type": "integer", + "format": "int32" + } + } + }, "SharePointOnlineListSource": { "description": "A copy activity source for sharePoint online list source.", "type": "object", diff --git a/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json b/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json index c6ff16345cf3..fbc4761ce067 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json @@ -7080,6 +7080,152 @@ "dataflow" ] }, + "ScriptActivity": { + "description": "Script activity type.", + "x-ms-discriminator-value": "Script", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ExecutionActivity" + } + ], + "properties": { + "typeProperties": { + "x-ms-client-flatten": true, + "description": "Script activity properties.", + "$ref": "#/definitions/ScriptActivityTypeProperties" + } + }, + "required": [ + "typeProperties", + "linkedServiceName" + ] + }, + "ScriptActivityTypeProperties": { + "description": "Script activity properties.", + "type": "object", + "properties": { + "scripts": { + "type": "array", + "description": "Array of script blocks. Type: array.", + "items": { + "$ref": "#/definitions/ScriptActivityScriptBlock" + } + }, + "logSettings": { + "description": "Log settings of script activity.", + "type": "object", + "properties": { + "logDestination": { + "x-ms-enum": { + "name": "ScriptActivityLogDestination", + "modelAsString": true + }, + "enum": [ + "ActivityOutput", + "ExternalStore" + ], + "type": "string", + "description": "The destination of logs. Type: string." + }, + "logLocationSettings": { + "description": "Log location settings customer needs to provide when enabling log.", + "$ref": "#/definitions/LogLocationSettings" + } + }, + "required": [ + "logDestination" + ] + } + } + }, + "ScriptActivityScriptBlock": { + "description": "Script block of scripts.", + "type": "object", + "properties": { + "text": { + "type": "object", + "description": "The query text. Type: string (or Expression with resultType string)." + }, + "type": { + "x-ms-enum": { + "name": "ScriptType", + "modelAsString": true + }, + "enum": [ + "Query", + "NonQuery" + ], + "type": "string", + "description": "The type of the query. Type: string." + }, + "parameters": { + "type": "array", + "description": "Array of script parameters. Type: array.", + "items": { + "$ref": "#/definitions/ScriptActivityParameter" + } + } + }, + "required": [ + "text", + "type" + ] + }, + "ScriptActivityParameter": { + "description": "Parameters of a script block.", + "type": "object", + "properties": { + "name": { + "type": "object", + "description": "The name of the parameter. Type: string (or Expression with resultType string)." + }, + "type": { + "description": "The type of the parameter.", + "type": "string", + "enum": [ + "Boolean", + "DateTime", + "DateTimeOffset", + "Decimal", + "Double", + "Guid", + "Int16", + "Int32", + "Int64", + "Single", + "String", + "Timespan" + ], + "x-ms-enum": { + "name": "ScriptActivityParameterType", + "modelAsString": true + } + }, + "value": { + "description": "The value of the parameter.", + "type": "object" + }, + "direction": { + "description": "The direction of the parameter.", + "type": "string", + "enum": [ + "Input", + "Output", + "InputOutput" + ], + "x-ms-enum": { + "name": "ScriptActivityParameterDirection", + "modelAsString": true + } + }, + "size": { + "description": "The size of the output direction parameter.", + "type": "integer", + "format": "int32" + } + } + }, "SharePointOnlineListSource": { "description": "A copy activity source for sharePoint online list source.", "type": "object",