Skip to content

Commit 01f4d81

Browse files
zhenqxuMSFTFredericHeem
authored andcommitted
[Data Factory] Add swagger for script activity (Azure#17686)
* Add swagger for script activity * Resolve issues * remove x-ms-identifier
1 parent 9ef1548 commit 01f4d81

File tree

3 files changed

+438
-0
lines changed
  • specification
    • datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes
    • synapse/data-plane/Microsoft.Synapse

3 files changed

+438
-0
lines changed

specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7363,6 +7363,152 @@
73637363
}
73647364
}
73657365
},
7366+
"ScriptActivity": {
7367+
"description": "Script activity type.",
7368+
"x-ms-discriminator-value": "Script",
7369+
"type": "object",
7370+
"allOf": [
7371+
{
7372+
"$ref": "#/definitions/ExecutionActivity"
7373+
}
7374+
],
7375+
"properties": {
7376+
"typeProperties": {
7377+
"x-ms-client-flatten": true,
7378+
"description": "Script activity properties.",
7379+
"$ref": "#/definitions/ScriptActivityTypeProperties"
7380+
}
7381+
},
7382+
"required": [
7383+
"typeProperties",
7384+
"linkedServiceName"
7385+
]
7386+
},
7387+
"ScriptActivityTypeProperties": {
7388+
"description": "Script activity properties.",
7389+
"type": "object",
7390+
"properties": {
7391+
"scripts": {
7392+
"type": "array",
7393+
"description": "Array of script blocks. Type: array.",
7394+
"items": {
7395+
"$ref": "#/definitions/ScriptActivityScriptBlock"
7396+
}
7397+
},
7398+
"logSettings": {
7399+
"description": "Log settings of script activity.",
7400+
"type": "object",
7401+
"properties": {
7402+
"logDestination": {
7403+
"x-ms-enum": {
7404+
"name": "ScriptActivityLogDestination",
7405+
"modelAsString": true
7406+
},
7407+
"enum": [
7408+
"ActivityOutput",
7409+
"ExternalStore"
7410+
],
7411+
"type": "string",
7412+
"description": "The destination of logs. Type: string."
7413+
},
7414+
"logLocationSettings": {
7415+
"description": "Log location settings customer needs to provide when enabling log.",
7416+
"$ref": "#/definitions/LogLocationSettings"
7417+
}
7418+
},
7419+
"required": [
7420+
"logDestination"
7421+
]
7422+
}
7423+
}
7424+
},
7425+
"ScriptActivityScriptBlock": {
7426+
"description": "Script block of scripts.",
7427+
"type": "object",
7428+
"properties": {
7429+
"text": {
7430+
"type": "object",
7431+
"description": "The query text. Type: string (or Expression with resultType string)."
7432+
},
7433+
"type": {
7434+
"x-ms-enum": {
7435+
"name": "ScriptType",
7436+
"modelAsString": true
7437+
},
7438+
"enum": [
7439+
"Query",
7440+
"NonQuery"
7441+
],
7442+
"type": "string",
7443+
"description": "The type of the query. Type: string."
7444+
},
7445+
"parameters": {
7446+
"type": "array",
7447+
"description": "Array of script parameters. Type: array.",
7448+
"items": {
7449+
"$ref": "#/definitions/ScriptActivityParameter"
7450+
}
7451+
}
7452+
},
7453+
"required": [
7454+
"text",
7455+
"type"
7456+
]
7457+
},
7458+
"ScriptActivityParameter": {
7459+
"description": "Parameters of a script block.",
7460+
"type": "object",
7461+
"properties": {
7462+
"name": {
7463+
"type": "object",
7464+
"description": "The name of the parameter. Type: string (or Expression with resultType string)."
7465+
},
7466+
"type": {
7467+
"description": "The type of the parameter.",
7468+
"type": "string",
7469+
"enum": [
7470+
"Boolean",
7471+
"DateTime",
7472+
"DateTimeOffset",
7473+
"Decimal",
7474+
"Double",
7475+
"Guid",
7476+
"Int16",
7477+
"Int32",
7478+
"Int64",
7479+
"Single",
7480+
"String",
7481+
"Timespan"
7482+
],
7483+
"x-ms-enum": {
7484+
"name": "ScriptActivityParameterType",
7485+
"modelAsString": true
7486+
}
7487+
},
7488+
"value": {
7489+
"description": "The value of the parameter.",
7490+
"type": "object"
7491+
},
7492+
"direction": {
7493+
"description": "The direction of the parameter.",
7494+
"type": "string",
7495+
"enum": [
7496+
"Input",
7497+
"Output",
7498+
"InputOutput"
7499+
],
7500+
"x-ms-enum": {
7501+
"name": "ScriptActivityParameterDirection",
7502+
"modelAsString": true
7503+
}
7504+
},
7505+
"size": {
7506+
"description": "The size of the output direction parameter.",
7507+
"type": "integer",
7508+
"format": "int32"
7509+
}
7510+
}
7511+
},
73667512
"SharePointOnlineListSource": {
73677513
"description": "A copy activity source for sharePoint online list source.",
73687514
"type": "object",

specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Pipeline.json

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7050,6 +7050,152 @@
70507050
"dataflow"
70517051
]
70527052
},
7053+
"ScriptActivity": {
7054+
"description": "Script activity type.",
7055+
"x-ms-discriminator-value": "Script",
7056+
"type": "object",
7057+
"allOf": [
7058+
{
7059+
"$ref": "#/definitions/ExecutionActivity"
7060+
}
7061+
],
7062+
"properties": {
7063+
"typeProperties": {
7064+
"x-ms-client-flatten": true,
7065+
"description": "Script activity properties.",
7066+
"$ref": "#/definitions/ScriptActivityTypeProperties"
7067+
}
7068+
},
7069+
"required": [
7070+
"typeProperties",
7071+
"linkedServiceName"
7072+
]
7073+
},
7074+
"ScriptActivityTypeProperties": {
7075+
"description": "Script activity properties.",
7076+
"type": "object",
7077+
"properties": {
7078+
"scripts": {
7079+
"type": "array",
7080+
"description": "Array of script blocks. Type: array.",
7081+
"items": {
7082+
"$ref": "#/definitions/ScriptActivityScriptBlock"
7083+
}
7084+
},
7085+
"logSettings": {
7086+
"description": "Log settings of script activity.",
7087+
"type": "object",
7088+
"properties": {
7089+
"logDestination": {
7090+
"x-ms-enum": {
7091+
"name": "ScriptActivityLogDestination",
7092+
"modelAsString": true
7093+
},
7094+
"enum": [
7095+
"ActivityOutput",
7096+
"ExternalStore"
7097+
],
7098+
"type": "string",
7099+
"description": "The destination of logs. Type: string."
7100+
},
7101+
"logLocationSettings": {
7102+
"description": "Log location settings customer needs to provide when enabling log.",
7103+
"$ref": "#/definitions/LogLocationSettings"
7104+
}
7105+
},
7106+
"required": [
7107+
"logDestination"
7108+
]
7109+
}
7110+
}
7111+
},
7112+
"ScriptActivityScriptBlock": {
7113+
"description": "Script block of scripts.",
7114+
"type": "object",
7115+
"properties": {
7116+
"text": {
7117+
"type": "object",
7118+
"description": "The query text. Type: string (or Expression with resultType string)."
7119+
},
7120+
"type": {
7121+
"x-ms-enum": {
7122+
"name": "ScriptType",
7123+
"modelAsString": true
7124+
},
7125+
"enum": [
7126+
"Query",
7127+
"NonQuery"
7128+
],
7129+
"type": "string",
7130+
"description": "The type of the query. Type: string."
7131+
},
7132+
"parameters": {
7133+
"type": "array",
7134+
"description": "Array of script parameters. Type: array.",
7135+
"items": {
7136+
"$ref": "#/definitions/ScriptActivityParameter"
7137+
}
7138+
}
7139+
},
7140+
"required": [
7141+
"text",
7142+
"type"
7143+
]
7144+
},
7145+
"ScriptActivityParameter": {
7146+
"description": "Parameters of a script block.",
7147+
"type": "object",
7148+
"properties": {
7149+
"name": {
7150+
"type": "object",
7151+
"description": "The name of the parameter. Type: string (or Expression with resultType string)."
7152+
},
7153+
"type": {
7154+
"description": "The type of the parameter.",
7155+
"type": "string",
7156+
"enum": [
7157+
"Boolean",
7158+
"DateTime",
7159+
"DateTimeOffset",
7160+
"Decimal",
7161+
"Double",
7162+
"Guid",
7163+
"Int16",
7164+
"Int32",
7165+
"Int64",
7166+
"Single",
7167+
"String",
7168+
"Timespan"
7169+
],
7170+
"x-ms-enum": {
7171+
"name": "ScriptActivityParameterType",
7172+
"modelAsString": true
7173+
}
7174+
},
7175+
"value": {
7176+
"description": "The value of the parameter.",
7177+
"type": "object"
7178+
},
7179+
"direction": {
7180+
"description": "The direction of the parameter.",
7181+
"type": "string",
7182+
"enum": [
7183+
"Input",
7184+
"Output",
7185+
"InputOutput"
7186+
],
7187+
"x-ms-enum": {
7188+
"name": "ScriptActivityParameterDirection",
7189+
"modelAsString": true
7190+
}
7191+
},
7192+
"size": {
7193+
"description": "The size of the output direction parameter.",
7194+
"type": "integer",
7195+
"format": "int32"
7196+
}
7197+
}
7198+
},
70537199
"SharePointOnlineListSource": {
70547200
"description": "A copy activity source for sharePoint online list source.",
70557201
"type": "object",

0 commit comments

Comments
 (0)