Skip to content

Commit

Permalink
[Synapse] Fix artifiact schema in dataplane API (preview version) (#1…
Browse files Browse the repository at this point in the history
…5451)

* [Synapse] Add missing 'folder' property for Synapse artifacts

* Fix SQL script schema

* update sql script connection

Co-authored-by: Liren Sun <lirsun@microsoft.com>
  • Loading branch information
SLRXXX and Liren Sun authored Aug 9, 2021
1 parent 1eb65d4 commit 6aaaf3e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@
"items": {
"$ref": "#/definitions/NotebookCell"
}
},
"folder": {
"description": "The folder that this notebook is in. If not specified, this notebook will appear at the root level.",
"type": "object",
"properties": {
"name": {
"description": "The name of the folder that this notebook is in.",
"type": "string"
}
}
}
},
"additionalProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
"jobProperties": {
"description": "The properties of the Spark job.",
"$ref": "#/definitions/SparkJobProperties"
},
"folder": {
"description": "The folder that this Spark job definition is in. If not specified, this Spark job definition will appear at the root level.",
"type": "object",
"properties": {
"name": {
"description": "The name of the folder that this Spark job definition is in.",
"type": "string"
}
}
}
},
"additionalProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
"content": {
"description": "The content of the SQL script.",
"$ref": "#/definitions/SqlScriptContent"
},
"folder": {
"description": "The folder that this SQL script is in. If not specified, this SQL script will appear at the root level.",
"type": "object",
"properties": {
"name": {
"description": "The name of the folder that this SQL script is in.",
"type": "string"
}
}
}
},
"additionalProperties": {
Expand All @@ -49,6 +59,10 @@
"description": "The connection used to execute the SQL script.",
"$ref": "#/definitions/SqlConnection"
},
"resultLimit": {
"description": "Limit of results, '-1' for no limit.",
"type": "number"
},
"metadata": {
"description": "The metadata of the SQL script.",
"$ref": "#/definitions/SqlScriptMetadata"
Expand All @@ -58,8 +72,7 @@
"type": "object"
},
"required": [
"query",
"currentConnection"
"query"
]
},
"SqlScriptMetadata": {
Expand Down Expand Up @@ -94,15 +107,19 @@
"name": {
"description": "The identifier of the connection.",
"type": "string"
},
"poolName": {
"description": "The associated SQL pool name (supported by SQL pool v3)",
"type": "string"
},
"databaseName": {
"description": "The associated database name (supported by SQL pool v3)",
"type": "string"
}
},
"additionalProperties": {
"type": "object"
},
"required": [
"type",
"name"
]
}
}
}
}

0 comments on commit 6aaaf3e

Please sign in to comment.