Skip to content

Commit 398e350

Browse files
feat(devbox): add SCHEDULED status to the data model (#9654)
1 parent ed324c5 commit 398e350

3 files changed

Lines changed: 16 additions & 12 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 120
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-1fc91661b27bb65f33c23969c150c99919820c6750b0f40dfad0d22e8827a82c.yml
3-
openapi_spec_hash: 2659e11dc1a69ec327f5e7bb0c0c6fe2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-22ab4a80734e5e3792b7287a1281280d52eff936be4d805011521a1b64e1998d.yml
3+
openapi_spec_hash: d109d3b797016fe7657935d55549cc31
44
config_hash: ed1fdd7c9f0a25647e16b602bad4ff2e

src/resources/devboxes/devboxes.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ export interface DevboxView {
851851
* The current status of the Devbox.
852852
*/
853853
status:
854+
| 'scheduled'
854855
| 'provisioning'
855856
| 'initializing'
856857
| 'running'
@@ -940,17 +941,19 @@ export namespace DevboxView {
940941
/**
941942
* The status of the Devbox.
942943
*
943-
* provisioning: Runloop is allocating and booting the necessary infrastructure
944-
* resources. initializing: Runloop defined boot scripts are running to enable the
945-
* environment for interaction. running: The Devbox is ready for interaction.
946-
* suspending: The Devbox disk is being snapshotted as part of suspension.
947-
* suspended: The Devbox disk is saved and no more active compute is being used for
948-
* the Devbox. resuming: The Devbox disk is being loaded as part of booting a
949-
* suspended Devbox. failure: The Devbox failed as part of booting or running user
950-
* requested actions. shutdown: The Devbox was successfully shutdown and no more
951-
* active compute is being used.
944+
* scheduled: The Devbox is scheduled to run but infrastructure allocation has not
945+
* started yet. provisioning: Runloop is allocating and booting the necessary
946+
* infrastructure resources. initializing: Runloop defined boot scripts are running
947+
* to enable the environment for interaction. running: The Devbox is ready for
948+
* interaction. suspending: The Devbox disk is being snapshotted as part of
949+
* suspension. suspended: The Devbox disk is saved and no more active compute is
950+
* being used for the Devbox. resuming: The Devbox disk is being loaded as part of
951+
* booting a suspended Devbox. failure: The Devbox failed as part of booting or
952+
* running user requested actions. shutdown: The Devbox was successfully shutdown
953+
* and no more active compute is being used.
952954
*/
953955
status?:
956+
| 'scheduled'
954957
| 'provisioning'
955958
| 'initializing'
956959
| 'running'
@@ -1281,6 +1284,7 @@ export interface DevboxListParams extends DevboxesCursorIDPageParams {
12811284
* Filter by status
12821285
*/
12831286
status?:
1287+
| 'scheduled'
12841288
| 'provisioning'
12851289
| 'initializing'
12861290
| 'running'

tests/api-resources/devboxes/devboxes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ describe('resource devboxes', () => {
167167
include_total_count: true,
168168
limit: 0,
169169
starting_after: 'starting_after',
170-
status: 'provisioning',
170+
status: 'scheduled',
171171
},
172172
{ path: '/_stainless_unknown_path' },
173173
),

0 commit comments

Comments
 (0)