fix(site/src/api/typesGenerated): generate HealthSection enums (#11049)

Relates to #8971

- Introduces a codersdk.HealthSection enum type
- Refactors existing references using strings to use new HealthSection type
This commit is contained in:
Cian Johnston
2023-12-05 20:00:27 +00:00
committed by GitHub
parent f66e802fae
commit feaa9894a4
13 changed files with 149 additions and 73 deletions

23
coderd/apidoc/docs.go generated
View File

@ -8973,13 +8973,30 @@ const docTemplate = `{
"GroupSourceOIDC"
]
},
"codersdk.HealthSection": {
"type": "string",
"enum": [
"DERP",
"AccessURL",
"Websocket",
"Database",
"WorkspaceProxy"
],
"x-enum-varnames": [
"HealthSectionDERP",
"HealthSectionAccessURL",
"HealthSectionWebsocket",
"HealthSectionDatabase",
"HealthSectionWorkspaceProxy"
]
},
"codersdk.HealthSettings": {
"type": "object",
"properties": {
"dismissed_healthchecks": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/definitions/codersdk.HealthSection"
}
}
}
@ -10862,7 +10879,7 @@ const docTemplate = `{
"dismissed_healthchecks": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/definitions/codersdk.HealthSection"
}
}
}
@ -12550,7 +12567,7 @@ const docTemplate = `{
"description": "FailingSections is a list of sections that have failed their healthcheck.",
"type": "array",
"items": {
"type": "string"
"$ref": "#/definitions/codersdk.HealthSection"
}
},
"healthy": {