mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: add provisioner job metadata (#16454)
This change adds metadata to provisioner jobs to help with rendering related tempaltes and workspaces in the UI. Updates #15084
This commit is contained in:
committed by
GitHub
parent
44d9f5ff4e
commit
b04d883348
28
coderd/apidoc/docs.go
generated
28
coderd/apidoc/docs.go
generated
@ -13125,6 +13125,9 @@ const docTemplate = `{
|
||||
"input": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerJobInput"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerJobMetadata"
|
||||
},
|
||||
"organization_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
@ -13220,6 +13223,31 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ProvisionerJobMetadata": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"template_display_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"template_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"template_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"template_version_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"workspace_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"workspace_name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ProvisionerJobStatus": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
28
coderd/apidoc/swagger.json
generated
28
coderd/apidoc/swagger.json
generated
@ -11852,6 +11852,9 @@
|
||||
"input": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerJobInput"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerJobMetadata"
|
||||
},
|
||||
"organization_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
@ -11941,6 +11944,31 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ProvisionerJobMetadata": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"template_display_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"template_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"template_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"template_version_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"workspace_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"workspace_name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ProvisionerJobStatus": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
Reference in New Issue
Block a user