diff --git a/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/sparkJob.json b/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/sparkJob.json index 03b8e07a411a..7d58413ab804 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/sparkJob.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/sparkJob.json @@ -796,7 +796,24 @@ }, "state": { "type": "string", - "description": "The batch state" + "description": "The batch state", + "enum": [ + "not_started", + "starting", + "idle", + "busy", + "shutting_down", + "error", + "dead", + "killed", + "success", + "running", + "recovering" + ], + "x-ms-enum": { + "name": "LivyStates", + "modelAsString": true + } }, "log": { "x-ms-client-name": "logLines", @@ -1252,7 +1269,25 @@ "x-nullable": true }, "state": { - "type": "string" + "type": "string", + "description": "The session state.", + "enum": [ + "not_started", + "starting", + "idle", + "busy", + "shutting_down", + "error", + "dead", + "killed", + "success", + "running", + "recovering" + ], + "x-ms-enum": { + "name": "LivyStates", + "modelAsString": true + } }, "log": { "x-ms-client-name": "logLines", @@ -1445,7 +1480,19 @@ "type": "string" }, "state": { - "type": "string" + "type": "string", + "enum": [ + "waiting", + "running", + "available", + "error", + "cancelling", + "cancelled" + ], + "x-ms-enum": { + "name": "LivyStatementStates", + "modelAsString": true + } }, "output": { "$ref": "#/definitions/SparkStatementOutput",