Skip to content

Conversation

@huksley
Copy link
Contributor

@huksley huksley commented Jan 21, 2026

Cluster get by id API API returns
returns cluster shared volumes but we don't expose in Python SDK.

This fixes that.

@huksley huksley requested a review from Copilot January 21, 2026 08:45
@huksley huksley changed the title fix: return cluster shared volumes fix: return cluster shared volumes [CLOUD-627] Jan 21, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for shared volumes in cluster objects by introducing a SharedVolume dataclass and updating the Cluster model to include a list of shared volumes. The changes also improve type hints and refactor the clusters example to use variables for better maintainability.

Changes:

  • Added SharedVolume dataclass to represent cluster shared volumes with fields for id, name, size, and mount point
  • Updated Cluster dataclass to include a shared_volumes field
  • Added type hint for HTTPClient in ClustersService.__init__
  • Refactored clusters example to use variables and display shared volume information

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
verda/clusters/_clusters.py Added SharedVolume dataclass, updated Cluster to include shared_volumes field, and improved type hints
examples/clusters_example.py Refactored to use variables for cluster configuration and added shared volumes display in output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shamrin shamrin merged commit e9e5e21 into master Jan 21, 2026
7 checks passed
@shamrin shamrin deleted the fix/cluster-shared-volumes branch January 21, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants