feat: change template max_ttl to default_ttl (#4843)

This commit is contained in:
Garrett Delfosse
2022-11-09 14:36:25 -05:00
committed by GitHub
parent ffc24dcbe0
commit d277e28427
26 changed files with 317 additions and 517 deletions

View File

@ -66,14 +66,9 @@ type CreateTemplateRequest struct {
VersionID uuid.UUID `json:"template_version_id" validate:"required"`
ParameterValues []CreateParameterRequest `json:"parameter_values,omitempty"`
// MaxTTLMillis allows optionally specifying the maximum allowable TTL
// DefaultTTLMillis allows optionally specifying the default TTL
// for all workspaces created from this template.
MaxTTLMillis *int64 `json:"max_ttl_ms,omitempty"`
// MinAutostartIntervalMillis allows optionally specifying the minimum
// allowable duration between autostarts for all workspaces created from
// this template.
MinAutostartIntervalMillis *int64 `json:"min_autostart_interval_ms,omitempty"`
DefaultTTLMillis *int64 `json:"default_ttl_ms,omitempty"`
}
// CreateWorkspaceRequest provides options for creating a new workspace.