Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down