feat(sdk,docs): adding resize to the golang and ruby sdks#3588
feat(sdk,docs): adding resize to the golang and ruby sdks#3588brunogrbavac wants to merge 4 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds resize functionality to the Go and Ruby SDKs, allowing users to dynamically adjust sandbox resources (CPU, memory, and disk) after creation. The changes include new resize methods in both SDKs, comprehensive documentation updates, and regenerated API clients to support the new resize operations.
Changes:
- Added
ResizeandResizeWithTimeoutmethods to the Go SDK with timeout handling and state polling - Added
resizeandwait_for_resize_completemethods to the Ruby SDK - Generated API clients for Go, Ruby, Python, and TypeScript to support the new resize endpoint and
RESIZEDstate - Added documentation section explaining resize behavior for started vs stopped sandboxes
Reviewed changes
Copilot reviewed 23 out of 24 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| libs/sdk-go/pkg/daytona/sandbox.go | Implements resize methods with timeout handling and state polling |
| libs/sdk-ruby/lib/daytona/sandbox.rb | Implements resize method with resource validation |
| libs/toolbox-api-client-go/model_session_send_input_request.go | Generated model for session input requests |
| libs/toolbox-api-client-go/api_process.go | Generated API method for sending input to commands |
| libs/api-client-ruby/lib/daytona_api_client/models/resize_sandbox.rb | Generated model for resize requests with validation |
| libs/api-client-ruby/lib/daytona_api_client/api/sandbox_api.rb | Generated API method for resizing sandboxes |
| libs/api-client-/models/ | Generated enum updates adding RESIZED/RESIZING states |
| examples//lifecycle/ | Example code demonstrating resize functionality |
| apps/docs/src/content/docs/en/sandboxes.mdx | Documentation for resize feature with usage examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2e30109 to
1da7283
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 22 out of 23 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… resize docs Signed-off-by: Bruno Grbavac <bruno.grbavac@outlook.com>
Signed-off-by: Bruno Grbavac <bruno.grbavac@outlook.com>
Signed-off-by: Bruno Grbavac <bruno.grbavac@outlook.com>
ccddcbc to
5754b70
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ing interval Signed-off-by: Bruno Grbavac <bruno.grbavac@outlook.com>
ae7e6dd to
ee2bfd1
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Added resize methods to Go and Ruby SDKs, also generated all the API clients. Added a resize paragraph in the Sandboxes documentation.
Documentation