File tree Expand file tree Collapse file tree
tests/api-resources/instances Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_endpoints : 30
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-cadf3c04bd1b4c87fc78f21d7430979d0b04d5d9d526ef54fa218a26f911e995 .yml
3- openapi_spec_hash : 95cadf7dffcfcefd2da8b531303ff218
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-e052ac01c788e7e3e46c96bf3c42be7ae57f9dd046129add8012d0eeb388e884 .yml
3+ openapi_spec_hash : fd805921c0162d63405f5feb7e8c7082
44config_hash : 170041ea532e81620e0f6a73f6b31d44
Original file line number Diff line number Diff line change @@ -203,6 +203,11 @@ export interface Instance {
203203 */
204204 env ?: { [ key : string ] : string } ;
205205
206+ /**
207+ * GPU information attached to the instance
208+ */
209+ gpu ?: Instance . GPU ;
210+
206211 /**
207212 * Whether a snapshot exists for this instance
208213 */
@@ -260,6 +265,21 @@ export interface Instance {
260265}
261266
262267export namespace Instance {
268+ /**
269+ * GPU information attached to the instance
270+ */
271+ export interface GPU {
272+ /**
273+ * mdev device UUID
274+ */
275+ mdev_uuid ?: string ;
276+
277+ /**
278+ * vGPU profile name
279+ */
280+ profile ?: string ;
281+ }
282+
263283 /**
264284 * Network configuration of the instance
265285 */
@@ -413,6 +433,11 @@ export interface InstanceCreateParams {
413433 */
414434 env ?: { [ key : string ] : string } ;
415435
436+ /**
437+ * GPU configuration for the instance
438+ */
439+ gpu ?: InstanceCreateParams . GPU ;
440+
416441 /**
417442 * Additional memory for hotplug (human-readable format like "3GB", "1G")
418443 */
@@ -450,6 +475,16 @@ export interface InstanceCreateParams {
450475}
451476
452477export namespace InstanceCreateParams {
478+ /**
479+ * GPU configuration for the instance
480+ */
481+ export interface GPU {
482+ /**
483+ * vGPU profile name (e.g., "L40S-1Q"). Only used in vGPU mode.
484+ */
485+ profile ?: string ;
486+ }
487+
453488 /**
454489 * Network configuration for the instance
455490 */
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ describe('resource instances', () => {
3131 devices : [ 'l4-gpu' ] ,
3232 disk_io_bps : '100MB/s' ,
3333 env : { PORT : '3000' , NODE_ENV : 'production' } ,
34+ gpu : { profile : 'L40S-1Q' } ,
3435 hotplug_size : '2GB' ,
3536 hypervisor : 'cloud-hypervisor' ,
3637 network : {
You can’t perform that action at this time.
0 commit comments