feat: Updating workspace prompts new parameters (#2598)

This commit is contained in:
Steven Masley
2022-06-27 11:19:10 -05:00
committed by GitHub
parent 407c47fd65
commit f41b50a253
7 changed files with 203 additions and 91 deletions

View File

@ -37,6 +37,10 @@ type CreateWorkspaceBuildRequest struct {
Transition WorkspaceTransition `json:"transition" validate:"oneof=create start stop delete,required"`
DryRun bool `json:"dry_run,omitempty"`
ProvisionerState []byte `json:"state,omitempty"`
// ParameterValues are optional. It will write params to the 'workspace' scope.
// This will overwrite any existing parameters with the same name.
// This will not delete old params not included in this list.
ParameterValues []CreateParameterRequest `json:"parameter_values,omitempty"`
}
type WorkspaceOptions struct {