@@ -1345,48 +1345,52 @@ components:
13451345 instanceId :
13461346 description : When a service with a disk is scaled, the instanceId is used to identify the instance that the disk is attached to. Each instance's disks get their own snapshots, and can be restored separately.
13471347 type : string
1348+ job :
1349+ properties :
1350+ createdAt :
1351+ example : " 2021-07-15T07:20:05.777035-07:00"
1352+ format : date-time
1353+ type : string
1354+ finishedAt :
1355+ example : " 2021-07-15T07:20:05.777035-07:00"
1356+ format : date-time
1357+ type : string
1358+ id :
1359+ example : job-cph1rs3idesc73a2b2mg
1360+ pattern : ^job-[0-9a-z]{20}$
1361+ type : string
1362+ planId :
1363+ example : plan-srv-004
1364+ type : string
1365+ serviceId :
1366+ example : srv-xxxxx
1367+ type : string
1368+ startCommand :
1369+ example : echo 'hello world'
1370+ type : string
1371+ startedAt :
1372+ example : " 2021-07-15T07:20:05.777035-07:00"
1373+ format : date-time
1374+ type : string
1375+ status :
1376+ enum :
1377+ - succeeded
1378+ - failed
1379+ - canceled
1380+ type : string
1381+ required :
1382+ - id
1383+ - serviceId
1384+ - startCommand
1385+ - planId
1386+ - createdAt
1387+ type : object
13481388 jobWithCursor :
13491389 properties :
13501390 cursor :
13511391 $ref : ' #/components/schemas/cursor'
13521392 job :
1353- properties :
1354- createdAt :
1355- example : " 2021-07-15T07:20:05.777035-07:00"
1356- format : date-time
1357- type : string
1358- finishedAt :
1359- example : " 2021-07-15T07:20:05.777035-07:00"
1360- format : date-time
1361- type : string
1362- id :
1363- $ref : ' #/paths/~1services~1%7BserviceId%7D~1jobs~1%7BjobId%7D/parameters/1/schema'
1364- planId :
1365- example : plan-srv-004
1366- type : string
1367- serviceId :
1368- example : srv-xxxxx
1369- type : string
1370- startCommand :
1371- example : echo 'hello world'
1372- type : string
1373- startedAt :
1374- example : " 2021-07-15T07:20:05.777035-07:00"
1375- format : date-time
1376- type : string
1377- status :
1378- enum :
1379- - succeeded
1380- - failed
1381- - canceled
1382- type : string
1383- required :
1384- - id
1385- - serviceId
1386- - startCommand
1387- - planId
1388- - createdAt
1389- type : object
1393+ $ref : ' #/components/schemas/job'
13901394 required :
13911395 - job
13921396 - cursor
@@ -9895,7 +9899,7 @@ paths:
98959899 content :
98969900 application/json :
98979901 schema :
9898- $ref : ' #/components/schemas/jobWithCursor/properties/ job'
9902+ $ref : ' #/components/schemas/job'
98999903 description : OK
99009904 " 400 " :
99019905 $ref : ' #/components/responses/400BadRequest'
@@ -9922,7 +9926,7 @@ paths:
99229926 content :
99239927 application/json :
99249928 schema :
9925- $ref : ' #/components/schemas/jobWithCursor/properties/ job'
9929+ $ref : ' #/components/schemas/job'
99269930 description : OK
99279931 " 400 " :
99289932 $ref : ' #/components/responses/400BadRequest'
@@ -9962,7 +9966,7 @@ paths:
99629966 content :
99639967 application/json :
99649968 schema :
9965- $ref : ' #/components/schemas/jobWithCursor/properties/ job'
9969+ $ref : ' #/components/schemas/job'
99669970 description : OK
99679971 " 400 " :
99689972 $ref : ' #/components/responses/400BadRequest'
0 commit comments