feat: enable setting max port share level during template creation (#14366)

This commit is contained in:
Ethan
2024-08-20 22:48:39 +10:00
committed by GitHub
parent 2bef1752f1
commit cca4519420
9 changed files with 77 additions and 2 deletions
+4
View File
@@ -184,6 +184,10 @@ type CreateTemplateRequest struct {
// RequireActiveVersion mandates that workspaces are built with the active
// template version.
RequireActiveVersion bool `json:"require_active_version"`
// MaxPortShareLevel allows optionally specifying the maximum port share level
// for workspaces created from the template.
MaxPortShareLevel *WorkspaceAgentPortShareLevel `json:"max_port_share_level"`
}
// CreateWorkspaceRequest provides options for creating a new workspace.