chore: Allow editing proxy fields via api. (#7435)

* chore: Add ability to update workspace proxy fields
This commit is contained in:
Steven Masley
2023-05-09 13:46:50 -05:00
committed by GitHub
parent fc1bc374cb
commit b5ad628460
15 changed files with 886 additions and 68 deletions
+16 -6
View File
@@ -264,12 +264,6 @@ export interface CreateWorkspaceProxyRequest {
readonly icon: string
}
// From codersdk/workspaceproxy.go
export interface CreateWorkspaceProxyResponse {
readonly proxy: WorkspaceProxy
readonly proxy_token: string
}
// From codersdk/organizations.go
export interface CreateWorkspaceRequest {
readonly template_id: string
@@ -632,6 +626,15 @@ export interface PatchTemplateVersionRequest {
readonly name: string
}
// From codersdk/workspaceproxy.go
export interface PatchWorkspaceProxy {
readonly id: string
readonly name: string
readonly display_name: string
readonly icon: string
readonly regenerate_token: boolean
}
// From codersdk/deployment.go
export interface PprofConfig {
readonly enable: boolean
@@ -1034,6 +1037,12 @@ export interface UpdateWorkspaceAutostartRequest {
readonly schedule?: string
}
// From codersdk/workspaceproxy.go
export interface UpdateWorkspaceProxyResponse {
readonly proxy: WorkspaceProxy
readonly proxy_token: string
}
// From codersdk/workspaces.go
export interface UpdateWorkspaceRequest {
readonly name?: string
@@ -1264,6 +1273,7 @@ export interface WorkspaceOptions {
export interface WorkspaceProxy {
readonly id: string
readonly name: string
readonly display_name: string
readonly icon: string
readonly url: string
readonly wildcard_hostname: string