Skip to content

Commit cbb456b

Browse files
idear1203Dongwei Wang
andauthored
Add possible value set for Livy states (#16033)
Co-authored-by: Dongwei Wang <[email protected]>
1 parent e6cd09a commit cbb456b

File tree

1 file changed

+50
-3
lines changed
  • specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01

1 file changed

+50
-3
lines changed

specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/sparkJob.json

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,24 @@
796796
},
797797
"state": {
798798
"type": "string",
799-
"description": "The batch state"
799+
"description": "The batch state",
800+
"enum": [
801+
"not_started",
802+
"starting",
803+
"idle",
804+
"busy",
805+
"shutting_down",
806+
"error",
807+
"dead",
808+
"killed",
809+
"success",
810+
"running",
811+
"recovering"
812+
],
813+
"x-ms-enum": {
814+
"name": "LivyStates",
815+
"modelAsString": true
816+
}
800817
},
801818
"log": {
802819
"x-ms-client-name": "logLines",
@@ -1252,7 +1269,25 @@
12521269
"x-nullable": true
12531270
},
12541271
"state": {
1255-
"type": "string"
1272+
"type": "string",
1273+
"description": "The session state.",
1274+
"enum": [
1275+
"not_started",
1276+
"starting",
1277+
"idle",
1278+
"busy",
1279+
"shutting_down",
1280+
"error",
1281+
"dead",
1282+
"killed",
1283+
"success",
1284+
"running",
1285+
"recovering"
1286+
],
1287+
"x-ms-enum": {
1288+
"name": "LivyStates",
1289+
"modelAsString": true
1290+
}
12561291
},
12571292
"log": {
12581293
"x-ms-client-name": "logLines",
@@ -1445,7 +1480,19 @@
14451480
"type": "string"
14461481
},
14471482
"state": {
1448-
"type": "string"
1483+
"type": "string",
1484+
"enum": [
1485+
"waiting",
1486+
"running",
1487+
"available",
1488+
"error",
1489+
"cancelling",
1490+
"cancelled"
1491+
],
1492+
"x-ms-enum": {
1493+
"name": "LivyStatementStates",
1494+
"modelAsString": true
1495+
}
14491496
},
14501497
"output": {
14511498
"$ref": "#/definitions/SparkStatementOutput",

0 commit comments

Comments
 (0)