debian-mirror-gitlab/spec/fixtures/api/schemas/deployment.json

69 lines
1.4 KiB
JSON
Raw Normal View History

2018-03-27 19:54:05 +05:30
{
2018-12-05 23:21:45 +05:30
"type": "object",
"required": [
"sha",
"created_at",
2019-12-04 20:38:33 +05:30
"deployed_at",
2018-12-05 23:21:45 +05:30
"iid",
"tag",
"last?",
2022-01-26 12:08:38 +05:30
"is_last",
2018-12-05 23:21:45 +05:30
"ref",
"id"
],
"properties": {
"created_at": { "type": "string" },
2019-12-04 20:38:33 +05:30
"deployed_at": { "type": ["string", "null"] },
2018-12-05 23:21:45 +05:30
"id": { "type": "integer" },
"iid": { "type": "integer" },
"last?": { "type": "boolean" },
2022-01-26 12:08:38 +05:30
"is_last": { "type": "boolean" },
2018-12-05 23:21:45 +05:30
"ref": {
"type": "object",
"required": [
"name"
],
"properties": {
2018-12-13 13:39:08 +05:30
"name": { "type": "string" },
"ref_path": { "type": "string" }
2018-12-05 23:21:45 +05:30
},
"additionalProperties": false
2018-03-27 19:54:05 +05:30
},
2018-12-05 23:21:45 +05:30
"sha": { "type": "string" },
2018-12-13 13:39:08 +05:30
"tag": { "type": "boolean" },
"user": {
"oneOf": [
{ "type": "null" },
{ "$ref": "entities/user.json" }
]
},
"commit": {
"oneOf": [
{ "type": "null" },
{ "$ref": "entities/commit.json" }
]
},
"deployable": {
"oneOf": [
{ "type": "null" },
{ "$ref": "job/job.json" }
]
},
2019-12-04 20:38:33 +05:30
"cluster": {
"oneOf": [
{ "type": "null" },
2020-03-13 15:44:24 +05:30
{ "$ref": "deployment_cluster.json" }
2019-12-04 20:38:33 +05:30
]
},
2018-12-13 13:39:08 +05:30
"manual_actions": {
"type": "array",
"items": { "$ref": "job/job.json" }
},
"scheduled_actions": {
"type": "array",
"items": { "$ref": "job/job.json" }
2019-12-21 20:55:43 +05:30
},
"status": { "type": "string" }
2022-05-07 20:08:51 +05:30
}
2018-03-27 19:54:05 +05:30
}