diff --git a/.stats.yml b/.stats.yml index 55ad565..7320373 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-e052ac01c788e7e3e46c96bf3c42be7ae57f9dd046129add8012d0eeb388e884.yml -openapi_spec_hash: fd805921c0162d63405f5feb7e8c7082 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-4f6187089a62f5df123ef4ee17660dd737c2b486377af2b5c5a922d454067b41.yml +openapi_spec_hash: 53e42659f7453f1abfda3236c3f7cb31 config_hash: 14135b7c88169a15762c8defb0bdfd16 diff --git a/instance.go b/instance.go index 7872d14..dbd6cca 100644 --- a/instance.go +++ b/instance.go @@ -453,6 +453,15 @@ type InstanceNewParams struct { OverlaySize param.Opt[string] `json:"overlay_size,omitzero"` // Base memory size (human-readable format like "1GB", "512MB", "2G") Size param.Opt[string] `json:"size,omitzero"` + // Skip guest-agent installation during boot. When true, the exec and stat APIs + // will not work for this instance. The instance will still run, but remote command + // execution will be unavailable. + SkipGuestAgent param.Opt[bool] `json:"skip_guest_agent,omitzero"` + // Skip kernel headers installation during boot for faster startup. When true, DKMS + // (Dynamic Kernel Module Support) will not work, preventing compilation of + // out-of-tree kernel modules (e.g., NVIDIA vGPU drivers). Recommended for + // workloads that don't need kernel module compilation. + SkipKernelHeaders param.Opt[bool] `json:"skip_kernel_headers,omitzero"` // Number of virtual CPUs Vcpus param.Opt[int64] `json:"vcpus,omitzero"` // Device IDs or names to attach for GPU/PCI passthrough diff --git a/instance_test.go b/instance_test.go index e5a73b9..f839230 100644 --- a/instance_test.go +++ b/instance_test.go @@ -45,9 +45,11 @@ func TestInstanceNewWithOptionalParams(t *testing.T) { BandwidthUpload: hypeman.String("1Gbps"), Enabled: hypeman.Bool(true), }, - OverlaySize: hypeman.String("20GB"), - Size: hypeman.String("2GB"), - Vcpus: hypeman.Int(2), + OverlaySize: hypeman.String("20GB"), + Size: hypeman.String("2GB"), + SkipGuestAgent: hypeman.Bool(false), + SkipKernelHeaders: hypeman.Bool(true), + Vcpus: hypeman.Int(2), Volumes: []hypeman.VolumeMountParam{{ MountPath: "/mnt/data", VolumeID: "vol-abc123",