Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Synapse] Support long running operation and add subclass of Activity in artifact #10270

Merged
merged 6 commits into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -77,6 +77,7 @@
}
},
"description": "Creates or updates a linked service.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/linkedServiceName"
Expand Down Expand Up @@ -108,6 +109,9 @@
"$ref": "#/definitions/LinkedServiceResource"
}
},
"202": {
"description": "Accepted."
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
Expand Down Expand Up @@ -171,6 +175,7 @@
}
},
"description": "Deletes a linked service.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/linkedServiceName"
Expand All @@ -183,6 +188,9 @@
"200": {
"description": "OK."
},
"202": {
"description": "Accepted."
},
"204": {
"description": "No Content."
},
Expand Down Expand Up @@ -415,6 +423,7 @@
}
},
"description": "Creates or updates a pipeline.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/pipelineName"
Expand Down Expand Up @@ -446,6 +455,9 @@
"$ref": "#/definitions/PipelineResource"
}
},
"202": {
"description": "Accepted."
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
Expand Down Expand Up @@ -509,6 +521,7 @@
}
},
"description": "Deletes a pipeline.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/pipelineName"
Expand All @@ -521,6 +534,9 @@
"200": {
"description": "OK."
},
"202": {
"description": "Accepted."
},
"204": {
"description": "No Content."
},
Expand All @@ -545,6 +561,7 @@
}
},
"description": "Creates a run of a pipeline.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/pipelineName"
Expand Down Expand Up @@ -593,6 +610,9 @@
"$ref": "#/definitions/CreateRunResponse"
}
},
"202": {
"description": "Accepted."
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
Expand Down Expand Up @@ -819,6 +839,7 @@
}
},
"description": "Creates or updates a trigger.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/triggerName"
Expand Down Expand Up @@ -850,6 +871,9 @@
"$ref": "#/definitions/TriggerResource"
}
},
"202": {
"description": "Accepted."
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
Expand Down Expand Up @@ -913,6 +937,7 @@
}
},
"description": "Deletes a trigger.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/triggerName"
Expand All @@ -925,6 +950,9 @@
"200": {
"description": "OK."
},
"202": {
"description": "Accepted."
},
"204": {
"description": "No Content."
},
Expand Down Expand Up @@ -2109,6 +2137,7 @@
}
},
"description": "Creates or updates a Note Book.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/NotebookName"
Expand Down Expand Up @@ -2140,6 +2169,9 @@
"$ref": "#/definitions/NotebookResource"
}
},
"202": {
"description": "Accepted."
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
Expand Down Expand Up @@ -2203,6 +2235,7 @@
}
},
"description": "Deletes a Note book.",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/NotebookName"
Expand All @@ -2215,6 +2248,9 @@
"200": {
"description": "OK."
},
"202": {
"description": "Accepted."
},
"204": {
"description": "No Content."
},
Expand Down Expand Up @@ -4130,6 +4166,78 @@
"readOnly": true
}
}
},
"SynapseNotebookReference": {
"description": "Synapse notebook reference type.",
"properties": {
"type": {
"type": "string",
"description": "Synapse notebook reference type.",
"enum": [
"NotebookReference"
],
"x-ms-enum": {
"name": "NotebookReferenceType",
"modelAsString": true
}
},
"referenceName": {
"type": "string",
"description": "Reference notebook name."
}
},
"required": [
"type",
"referenceName"
]
},
"SynapseSparkJobReference": {
"description": "Synapse spark job reference type.",
"properties": {
"type": {
"type": "string",
"description": "Synapse spark job reference type.",
"enum": [
"SparkJobDefinitionReference"
],
"x-ms-enum": {
"name": "SparkJobReferenceType",
"modelAsString": true
}
},
"referenceName": {
"type": "string",
"description": "Reference spark job name."
}
},
"required": [
"type",
"referenceName"
]
},
"SqlPoolReference": {
"description": "SQL pool reference type.",
"properties": {
"type": {
"type": "string",
"description": "SQL pool reference type.",
"enum": [
"SqlPoolReference"
],
"x-ms-enum": {
"name": "SqlPoolReferenceType",
"modelAsString": true
}
},
"referenceName": {
"type": "string",
"description": "Reference SQL pool name."
}
},
"required": [
"type",
"referenceName"
]
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5831,6 +5831,115 @@
"required": [
"dataFlow"
]
},
"SynapseNotebookActivity": {
"description": "Execute Synapse notebook activity.",
"x-ms-discriminator-value": "SynapseNotebook",
"allOf": [
{
"$ref": "#/definitions/Activity"
}
],
"properties": {
"typeProperties": {
"x-ms-client-flatten": true,
"description": "Execute Synapse notebook activity properties.",
"$ref": "#/definitions/SynapseNotebookActivityTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SynapseNotebookActivityTypeProperties": {
"description": "Execute Synapse notebook activity properties.",
"properties": {
"notebook": {
"description": "Synapse notebook reference.",
"$ref": "../artifacts.json#/definitions/SynapseNotebookReference"
},
"parameters": {
"description": "Notebook parameters.",
"$ref": "../artifacts.json#/definitions/ParameterValueSpecification"
}
},
"required": [
"notebook"
]
},
"SynapseSparkJobDefinitionActivity": {
"description": "Execute spark job activity.",
"x-ms-discriminator-value": "SparkJob",
"allOf": [
{
"$ref": "#/definitions/Activity"
}
],
"properties": {
"typeProperties": {
"x-ms-client-flatten": true,
"description": "Execute spark job activity properties.",
"$ref": "#/definitions/SynapseSparkJobActivityTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SynapseSparkJobActivityTypeProperties": {
"description": "Execute spark job activity properties.",
"properties": {
"sparkJob": {
"description": "Synapse spark job reference.",
"$ref": "../artifacts.json#/definitions/SynapseSparkJobReference"
}
},
"required": [
"sparkJob"
]
},
"SqlPoolStoredProcedureActivity": {
"description": "Execute SQL pool stored procedure activity.",
"x-ms-discriminator-value": "SqlPoolStoredProcedure",
"allOf": [
{
"$ref": "#/definitions/Activity"
}
],
"properties": {
"sqlPool": {
"description": "SQL pool stored procedure reference.",
"$ref": "../artifacts.json#/definitions/SqlPoolReference"
},
"typeProperties": {
"x-ms-client-flatten": true,
"description": "Execute SQL pool stored procedure activity properties.",
"$ref": "#/definitions/SqlPoolStoredProcedureActivityTypeProperties"
}
},
"required": [
"sqlPool",
"typeProperties"
]
},
"SqlPoolStoredProcedureActivityTypeProperties": {
"description": "SQL stored procedure activity properties.",
"properties": {
"storedProcedureName": {
"type": "object",
"description": "Stored procedure name. Type: string (or Expression with resultType string)."
},
"storedProcedureParameters": {
"description": "Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", type: \"int\"}}\".",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/StoredProcedureParameter"
}
}
},
"required": [
"storedProcedureName"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"202": {
"headers": {
"Date": "Sat, 16 Jun 2018 00:37:34 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-writes": "1196",
"x-ms-request-id": "b3b336b3-b203-4654-9cb6-a3a8d3a4b5de",
"x-ms-correlation-request-id": "b3b336b3-b203-4654-9cb6-a3a8d3a4b5de"
},
}
},
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/linkedservices/exampleLinkedService",
"name": "exampleLinkedService",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Loading