feat: support dynamic parameters on create template request (#18636)

Future work is to add this checkbox to the UI to opt into dynamic
parameters from the first template create.
This commit is contained in:
Steven Masley
2025-07-02 09:44:01 -05:00
committed by GitHub
parent 91aa583ea4
commit 4072d228c5
13 changed files with 72 additions and 40 deletions

View File

@ -200,6 +200,12 @@ type CreateTemplateRequest struct {
// MaxPortShareLevel allows optionally specifying the maximum port share level
// for workspaces created from the template.
MaxPortShareLevel *WorkspaceAgentPortShareLevel `json:"max_port_share_level"`
// UseClassicParameterFlow allows optionally specifying whether
// the template should use the classic parameter flow. The default if unset is
// true, and is why `*bool` is used here. When dynamic parameters becomes
// the default, this will default to false.
UseClassicParameterFlow *bool `json:"template_use_classic_parameter_flow,omitempty"`
}
// CreateWorkspaceRequest provides options for creating a new workspace.