Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3101,6 +3101,39 @@
"message"
]
},
"VariableDefinitionSpecification": {
"description": "Definition of all variables for an Pipeline.",

@annatisch Anna Tisch (annatisch) Sep 28, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a Pipeline"

Additionally - this description says "Definition of all variables - yet it only references a single Specification.
Should it be referencing an array of VariableSpecifications? If not - maybe alter this description.

"type": "object",
"additionalProperties": {
"$ref": "#/definitions/VariableSpecification"
}
},
"VariableSpecification": {
"description": "Definition of a single variable for an pipeline.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a Pipeline"

"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Variable type.",
"enum": [
"String",
"Bool",
"Array"
],
"x-ms-enum": {
"name": "VariableType",
"modelAsString": true
}
},
"defaultValue": {
"type": "object",
"description": "Default value of variable."
}
},
"required": [
"type"
]
},
"ParameterDefinitionSpecification": {
"description": "Definition of all parameters for an entity.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"$ref": "../datafactory.json#/definitions/ParameterDefinitionSpecification",
"description": "List of parameters for pipeline."
},
"variables": {
"$ref": "../datafactory.json#/definitions/VariableDefinitionSpecification",
"description": "List of variables for pipeline."
},
"concurrency": {
"type": "integer",
"minimum": 1,
Expand Down Expand Up @@ -3023,6 +3027,70 @@
"required": [
"pythonFile"
]
},
"SetVariableActivity": {
"x-ms-discriminator-value": "SetVariable",
"description": "Set value for a Variable.",
"allOf": [
{
"$ref": "#/definitions/ControlActivity"
}
],
"properties": {
"typeProperties": {
"description": "Set Variable activity properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/SetVariableActivityTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SetVariableActivityTypeProperties": {
"description": "SetVariable activity properties.",
"properties": {
"variableName": {
"description": "Name of the variable whose value needs to be set.",
"type": "string"
},
"value": {
"description": "Value to be set. Could be a static value or Expression",
"type": "object"
}
}
},
"AppendVariableActivity": {
"x-ms-discriminator-value": "AppendVariable",
"description": "Append value for a Variable of type Array.",
"allOf": [
{
"$ref": "#/definitions/ControlActivity"
}
],
"properties": {
"typeProperties": {
"description": "Append Variable activity properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/AppendVariableActivityTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"AppendVariableActivityTypeProperties": {
"description": "AppendVariable activity properties.",
"properties": {
"variableName": {
"description": "Name of the variable whose value needs to be appended to.",
"type": "string"
},
"value": {
"description": "Value to be appended. Could be a static value or Expression",
"type": "object"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
"OutputBlobNameList": {
"type": "Array"
}
},
"variables": {
"TestVariableArray": {
"type": "Array"
}
}
}
},
Expand Down Expand Up @@ -136,6 +141,11 @@
"OutputBlobNameList": {
"type": "Array"
}
},
"variables": {
"TestVariableArray": {
"type": "Array"
}
}
},
"etag": "0a0069d4-0000-0000-0000-5b245bd50000"
Expand Down