mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat: change template max_ttl to default_ttl (#4843)
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user