Skip to content

Commit 8f0f4f4

Browse files
feat: QEMU support
1 parent 0ee9f4a commit 8f0f4f4

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-28e78b73c796f9ee866671ed946402b5d569e683c3207d57c9143eb7d6f83fb6.yml
3-
openapi_spec_hash: fce0ac8713369a5f048bac684ed34fc8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-cfdd18a303e2e6c87d671e6ae3ecdcd1d9642b053c2ef6bc507eee3f55cc6aa8.yml
3+
openapi_spec_hash: 0b038c955d95740ace74103a9c18d5a3
44
config_hash: f65a6a2bcef49a9f623212f9de6d6f6f

src/resources/instances/instances.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ export interface Instance {
208208
*/
209209
hotplug_size?: string;
210210

211+
/**
212+
* Hypervisor running this instance
213+
*/
214+
hypervisor?: 'cloud-hypervisor' | 'qemu';
215+
211216
/**
212217
* Network configuration of the instance
213218
*/
@@ -392,6 +397,11 @@ export interface InstanceCreateParams {
392397
*/
393398
hotplug_size?: string;
394399

400+
/**
401+
* Hypervisor to use for this instance. Defaults to server configuration.
402+
*/
403+
hypervisor?: 'cloud-hypervisor' | 'qemu';
404+
395405
/**
396406
* Network configuration for the instance
397407
*/

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ describe('resource instances', () => {
3131
devices: ['l4-gpu'],
3232
env: { PORT: '3000', NODE_ENV: 'production' },
3333
hotplug_size: '2GB',
34+
hypervisor: 'cloud-hypervisor',
3435
network: { enabled: true },
3536
overlay_size: '20GB',
3637
size: '2GB',

0 commit comments

Comments
 (0)