feat: add deleted_at field to workspace model (#7475)

* added impending_deletion workspace field

* gen docs

* update golden files

* added test

* PR comments
This commit is contained in:
Kira Pilot
2023-05-11 08:47:53 -07:00
committed by GitHub
parent fe0e94ece9
commit ae3473dc1b
11 changed files with 149 additions and 21 deletions

View File

@ -34,6 +34,10 @@ type Workspace struct {
AutostartSchedule *string `json:"autostart_schedule,omitempty"`
TTLMillis *int64 `json:"ttl_ms,omitempty"`
LastUsedAt time.Time `json:"last_used_at" format:"date-time"`
// DeletingAt indicates the time of the upcoming workspace deletion, if applicable; otherwise it is nil.
// Workspaces may have impending deletions if Template.InactivityTTL feature is turned on and the workspace is inactive.
DeletingAt *time.Time `json:"deleting_at" format:"date-time"`
}
type WorkspacesRequest struct {