feat: Implement experiment gated CRUD for workspace proxies (#6928)

* feat: Implement basic moon crud
* chore: Implement enterprise endpoints for moons
This commit is contained in:
Steven Masley
2023-04-04 15:07:29 -05:00
committed by GitHub
parent 385a4262e2
commit b4afbe7720
33 changed files with 1327 additions and 7 deletions

129
coderd/apidoc/docs.go generated
View File

@ -4995,6 +4995,71 @@ const docTemplate = `{
}
}
},
"/workspaceproxies": {
"get": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": [
"application/json"
],
"tags": [
"Enterprise"
],
"summary": "Get workspace proxies",
"operationId": "get-workspace-proxies",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.WorkspaceProxy"
}
}
}
}
},
"post": {
"security": [
{
"CoderSessionToken": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Templates"
],
"summary": "Create workspace proxy",
"operationId": "create-workspace-proxy",
"parameters": [
{
"description": "Create workspace proxy request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/codersdk.CreateWorkspaceProxyRequest"
}
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/codersdk.WorkspaceProxy"
}
}
}
}
},
"/workspaces": {
"get": {
"security": [
@ -6706,6 +6771,26 @@ const docTemplate = `{
}
}
},
"codersdk.CreateWorkspaceProxyRequest": {
"type": "object",
"properties": {
"display_name": {
"type": "string"
},
"icon": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"wildcard_hostname": {
"type": "string"
}
}
},
"codersdk.CreateWorkspaceRequest": {
"type": "object",
"required": [
@ -7086,10 +7171,12 @@ const docTemplate = `{
"codersdk.Experiment": {
"type": "string",
"enum": [
"template_editor"
"template_editor",
"moons"
],
"x-enum-varnames": [
"ExperimentTemplateEditor"
"ExperimentTemplateEditor",
"ExperimentMoons"
]
},
"codersdk.Feature": {
@ -9355,6 +9442,44 @@ const docTemplate = `{
}
}
},
"codersdk.WorkspaceProxy": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"deleted": {
"type": "boolean"
},
"icon": {
"type": "string"
},
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"organization_id": {
"type": "string",
"format": "uuid"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"url": {
"description": "Full url including scheme of the proxy api url: https://us.example.com",
"type": "string"
},
"wildcard_hostname": {
"description": "WildcardHostname with the wildcard for subdomain based app hosting: *.us.example.com",
"type": "string"
}
}
},
"codersdk.WorkspaceQuota": {
"type": "object",
"properties": {