Repository navigation
chore: 🐝 Update SDK - Generate 3.4.8 - #70
Conversation
| return self.list_volumes( | ||
| filter_project=filter_project, | ||
| filter_name=filter_name, | ||
| page_size=page_size, | ||
| page_number=next_page, | ||
| stats_total=stats_total, |
There was a problem hiding this comment.
After a full page, the callback returned by list_volumes_async() calls synchronous list_volumes(). This blocks the event loop and switches from the supplied async_client to the separate synchronous client. If the custom client supplies required headers, certificates, or transport settings, later pages can fail even though the first succeeds.
The new filesystem, bucket, and SSH-key listings follow the same pattern. Keep later requests asynchronous and on the same client.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/latitudesh_python_sdk/block_storage.py
Line: 245-250
Comment:
**Later pages switch clients**
After a full page, the callback returned by `list_volumes_async()` calls synchronous `list_volumes()`. This blocks the event loop and switches from the supplied `async_client` to the separate synchronous client. If the custom client supplies required headers, certificates, or transport settings, later pages can fail even though the first succeeds.
The new filesystem, bucket, and SSH-key listings follow the same pattern. Keep later requests asynchronous and on the same client.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| class ListVolumesMeta(BaseModel): | ||
| pass |
There was a problem hiding this comment.
Requested storage totals disappear
The new stats_total="count" option promises meta.stats.total.count, but ListVolumesMeta has no fields. BaseModel ignores unknown fields, so reading the response discards stats. Callers cannot read the requested count through the documented path.
The new ObjectStoragesMeta has the same problem, and the new filesystem count option uses an equally empty model. Use the existing PaginationMeta structure so the totals survive.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/latitudesh_python_sdk/models/list_volumesop.py
Line: 104-105
Comment:
**Requested storage totals disappear**
The new `stats_total="count"` option promises `meta.stats.total.count`, but `ListVolumesMeta` has no fields. `BaseModel` ignores unknown fields, so reading the response discards `stats`. Callers cannot read the requested count through the documented path.
The new `ObjectStoragesMeta` has the same problem, and the new filesystem count option uses an equally empty model. Use the existing `PaginationMeta` structure so the totals survive.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.* `latitudesh.object_storage.get_storage_access_keys()`: `response.data` **Changed** (Breaking⚠️ ) * `latitudesh.managed_databases.create_managed_database()`: * `request.data.attributes.recovery` **Changed** (Breaking⚠️ ) * `error.status[403]` **Added** * `latitudesh.virtual_machine_restores.get_virtual_machine_restore()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.virtual_machine_restores.list_virtual_machine_restores()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.virtual_machine_restores.list_backup_restores()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.virtual_machine_restores.list_virtual_machine_scoped_restores()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.virtual_machine_backups.get_virtual_machine_backup()`: * `response.data.attributes.progress` **Added** * `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.virtual_machine_backups.list_virtual_machine_backups()`: * `response.data[].attributes.progress` **Added** * `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.events.list()`: `response.data[].attributes.properties` **Removed** (Breaking⚠️ ) * `latitudesh.elastic_ips.list_elastic_ips()`: `response.data[].attributes` **Changed** (Breaking⚠️ ) * `latitudesh.elastic_ips.create_elastic_ip()`: `response.data.attributes` **Changed** (Breaking⚠️ ) * `latitudesh.elastic_ips.get_elastic_ip()`: `response.data.attributes` **Changed** (Breaking⚠️ ) * `latitudesh.elastic_ips.update_elastic_ip()`: `response.data.attributes` **Changed** (Breaking⚠️ ) * `latitudesh.virtual_machine_backups.list_virtual_machine_scoped_backups()`: * `response.data[].attributes.progress` **Added** * `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.teams.create()`: `response` **Changed** (Breaking⚠️ ) * `latitudesh.filesystem_storage.create_filesystem()`: `error.status[503]` **Removed** (Breaking⚠️ ) * `latitudesh.servers.reinstall()`: * `request.data.attributes.disk_layout[].filesystem` **Changed** (Breaking⚠️ ) * `latitudesh.servers.update_deploy_config()`: `response.data.attributes.bios` **Removed** (Breaking⚠️ ) * `latitudesh.kubernetes_clusters.create_kubernetes_cluster()`: * `request.data.attributes.worker_operating_system` **Added** * `response.data` **Changed** (Breaking⚠️ ) * `latitudesh.servers.get_deploy_config()`: `response.data.attributes.bios` **Removed** (Breaking⚠️ ) * `latitudesh.servers.create()`: * `request.data.attributes.disk_layout[].filesystem` **Changed** (Breaking⚠️ ) * `response.data.attributes.vpc` **Added** * `latitudesh.object_storage.get_storage_bucket_metrics()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.object_storage.get_storage_bucket_lifecycle_rule()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.plans.list_vm_plans()`: `response.data[].attributes.regions[].available` **Removed** (Breaking⚠️ ) * `latitudesh.public_networks.get_public_networks()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.public_networks.get_public_network()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.public_networks.destroy_public_network()`: `response.status[202]` **Added** (Breaking⚠️ ) * `latitudesh.object_storage.get_storage_bucket_lifecycle_rules()`: `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.object_storage.get_storage_bucket()`: * `request.extra_fields[object_storages]` **Added** * `response.data.attributes` **Changed** * `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.object_storage.get_storage_buckets()`: * `request` **Changed** * `response` **Changed** * `error.status[403]` **Removed** (Breaking⚠️ ) * `latitudesh.object_storage.post_storage_access_keys()`: `response.data.attributes` **Changed** (Breaking⚠️ ) * `latitudesh.plans.list()`: `response.meta` **Added** * `latitudesh.block_storage.list_volumes()`: * `request` **Changed** * `response.meta` **Added** * `latitudesh.ssh_keys.post_ssh_key()`: `response.meta` **Added** * `latitudesh.ssh_keys.get_ssh_key()`: `response.meta` **Added** * `latitudesh.ssh_keys.put_ssh_key()`: `response.meta` **Added** * `latitudesh.ssh_keys.update()`: `response.meta` **Added** * `latitudesh.ssh_keys.get()`: `response.meta` **Added** * `latitudesh.ssh_keys.create()`: `response.meta` **Added** * `latitudesh.object_storage.post_storage_buckets()`: * `request.data.attributes.bucket_logging` **Added** * `response.data.attributes` **Changed** * `latitudesh.projects.update()`: `response.meta` **Added** * `latitudesh.projects.create()`: `response.meta` **Added** * `latitudesh.plans.list_storage()`: `response.data[].attributes.regions[].pricing.Map<pricing>.year` **Added** * `latitudesh.object_storage.patch_storage_buckets()`: **Added** * `latitudesh.clusters.update_project_cluster_node_group()`: `error.status[409]` **Added** * `latitudesh.regions.get()`: `response.meta` **Added** * `latitudesh.servers.list()`: `response.data[].attributes.vpc` **Added** * `latitudesh.kubernetes_clusters.update_kubernetes_cluster()`: * `request.data.attributes.worker_operating_system` **Added** * `latitudesh.servers.get()`: `response.data.attributes.vpc` **Added** * `latitudesh.servers.update()`: `response.data.attributes.vpc` **Added** * `latitudesh.kubernetes_clusters.get_kubernetes_cluster()`: `response.data.attributes.nodes[].version` **Added** * `latitudesh.teams_members.add()`: `response` **Changed** * `latitudesh.servers.lock()`: `response.data.attributes.vpc` **Added** * `latitudesh.servers.unlock()`: `response.data.attributes.vpc` **Added** * `latitudesh.servers.schedule_deletion()`: `response.meta` **Added** * `latitudesh.elastic_ips.delete_elastic_ip_bgp_session()`: `error` **Changed** * `latitudesh.elastic_ips.get_elastic_ip_bgp_session()`: `error.status[404]` **Added** * `latitudesh.filesystem_storage.list_filesystems()`: `request` **Changed** * `latitudesh.ssh_keys.get_ssh_keys()`: `request` **Changed** * `latitudesh.teams.get()`: `response.data[].type` **Added** * `latitudesh.elastic_ips.create_elastic_ip_bgp_session()`: `error` **Changed** * `latitudesh.teams.update()`: `response` **Changed** * `latitudesh.user_profile.get()`: `response.meta` **Added** * `latitudesh.virtual_machines.create()`: * `request.x_correlation_id` **Added** * `response.data.attributes` **Changed** * `latitudesh.virtual_machines.list()`: * `request.x_correlation_id` **Added** * `response.data[].attributes` **Changed** * `latitudesh.virtual_machines.get()`: `response.data.attributes` **Changed** * `latitudesh.virtual_machines.update_virtual_machine()`: * `request.x_correlation_id` **Added** * `response.data.attributes` **Changed** * `latitudesh.elastic_ips.list_elastic_ip_bgp_sessions()`: `error.status[404]` **Added** * `latitudesh.virtual_machine_backups.create_virtual_machine_backup()`: `response.data.attributes.progress` **Added** * `latitudesh.baselines_(preview).create_baseline()`: * `request.data.attributes.bios` **Changed** * `latitudesh.virtual_machine_backups.create_virtual_machine_backup_top_level()`: `response.data.attributes.progress` **Added** * `latitudesh.inference.get_inference_usage()`: `response.by_model[]` **Changed** * `latitudesh.virtual_machine_backups.delete_virtual_machine_backup()`: `response.data.attributes.progress` **Added** * `latitudesh.api_keys.update_api_key()`: `response.meta` **Added** * `latitudesh.api_keys.regenerate()`: `response.meta` **Added** * `latitudesh.api_keys.create()`: `response.meta` **Added** * `latitudesh.virtual_machines.unlock_virtual_machine()`: **Added** * `latitudesh.private_networks.list()`: `response.data[].attributes.site` **Added** * `latitudesh.private_networks.create()`: `response.data.attributes.site` **Added** * `latitudesh.private_networks.update()`: `response.data.attributes.site` **Added** * `latitudesh.private_networks.get()`: `response.data.attributes.site` **Added** * `latitudesh.private_networks.list_assignments()`: `response.data[].attributes.server_id` **Added** * `latitudesh.private_networks.assign()`: `response.data.attributes.server_id` **Added** * `latitudesh.managed_databases.create_managed_database()`: **Deprecated** * `latitudesh.virtual_machines.lock_virtual_machine()`: **Added**
ac18ed3 to
5424bda
Compare
SDK update
Versioning
Version Bump Type: [patch] - 🤖 (automated)
Tip
If updates to your OpenAPI document introduce breaking changes, be sure to update the
info.versionfield to trigger the correct version bump.Speakeasy supports manual control of SDK versioning through multiple methods.
Python SDK Changes:
latitudesh.object_storage.get_storage_access_keys():response.dataChanged (Breakinglatitudesh.managed_databases.create_managed_database():request.data.attributes.recoveryChanged (Breakingerror.status[403]Addedlatitudesh.virtual_machine_restores.get_virtual_machine_restore():error.status[403]Removed (Breakinglatitudesh.virtual_machine_restores.list_virtual_machine_restores():error.status[403]Removed (Breakinglatitudesh.virtual_machine_restores.list_backup_restores():error.status[403]Removed (Breakinglatitudesh.virtual_machine_restores.list_virtual_machine_scoped_restores():error.status[403]Removed (Breakinglatitudesh.virtual_machine_backups.get_virtual_machine_backup():response.data.attributes.progressAddederror.status[403]Removed (Breakinglatitudesh.virtual_machine_backups.list_virtual_machine_backups():response.data[].attributes.progressAddederror.status[403]Removed (Breakinglatitudesh.events.list():response.data[].attributes.propertiesRemoved (Breakinglatitudesh.elastic_ips.list_elastic_ips():response.data[].attributesChanged (Breakinglatitudesh.elastic_ips.create_elastic_ip():response.data.attributesChanged (Breakinglatitudesh.elastic_ips.get_elastic_ip():response.data.attributesChanged (Breakinglatitudesh.elastic_ips.update_elastic_ip():response.data.attributesChanged (Breakinglatitudesh.virtual_machine_backups.list_virtual_machine_scoped_backups():response.data[].attributes.progressAddederror.status[403]Removed (Breakinglatitudesh.teams.create():responseChanged (Breakinglatitudesh.filesystem_storage.create_filesystem():error.status[503]Removed (Breakinglatitudesh.servers.reinstall():request.data.attributes.disk_layout[].filesystemChanged (Breakinglatitudesh.servers.update_deploy_config():response.data.attributes.biosRemoved (Breakinglatitudesh.kubernetes_clusters.create_kubernetes_cluster():request.data.attributes.worker_operating_systemAddedresponse.dataChanged (Breakinglatitudesh.servers.get_deploy_config():response.data.attributes.biosRemoved (Breakinglatitudesh.servers.create():request.data.attributes.disk_layout[].filesystemChanged (Breakingresponse.data.attributes.vpcAddedlatitudesh.object_storage.get_storage_bucket_metrics():error.status[403]Removed (Breakinglatitudesh.object_storage.get_storage_bucket_lifecycle_rule():error.status[403]Removed (Breakinglatitudesh.plans.list_vm_plans():response.data[].attributes.regions[].availableRemoved (Breakinglatitudesh.public_networks.get_public_networks():error.status[403]Removed (Breakinglatitudesh.public_networks.get_public_network():error.status[403]Removed (Breakinglatitudesh.public_networks.destroy_public_network():response.status[202]Added (Breakinglatitudesh.object_storage.get_storage_bucket_lifecycle_rules():error.status[403]Removed (Breakinglatitudesh.object_storage.get_storage_bucket():request.extra_fields[object_storages]Addedresponse.data.attributesChangederror.status[403]Removed (Breakinglatitudesh.object_storage.get_storage_buckets():requestChangedresponseChangederror.status[403]Removed (Breakinglatitudesh.object_storage.post_storage_access_keys():response.data.attributesChanged (Breakinglatitudesh.plans.list():response.metaAddedlatitudesh.block_storage.list_volumes():requestChangedresponse.metaAddedlatitudesh.ssh_keys.post_ssh_key():response.metaAddedlatitudesh.ssh_keys.get_ssh_key():response.metaAddedlatitudesh.ssh_keys.put_ssh_key():response.metaAddedlatitudesh.ssh_keys.update():response.metaAddedlatitudesh.ssh_keys.get():response.metaAddedlatitudesh.ssh_keys.create():response.metaAddedlatitudesh.object_storage.post_storage_buckets():request.data.attributes.bucket_loggingAddedresponse.data.attributesChangedlatitudesh.projects.update():response.metaAddedlatitudesh.projects.create():response.metaAddedlatitudesh.plans.list_storage():response.data[].attributes.regions[].pricing.Map<pricing>.yearAddedlatitudesh.object_storage.patch_storage_buckets(): Addedlatitudesh.clusters.update_project_cluster_node_group():error.status[409]Addedlatitudesh.regions.get():response.metaAddedlatitudesh.servers.list():response.data[].attributes.vpcAddedlatitudesh.kubernetes_clusters.update_kubernetes_cluster():request.data.attributes.worker_operating_systemAddedlatitudesh.servers.get():response.data.attributes.vpcAddedlatitudesh.servers.update():response.data.attributes.vpcAddedlatitudesh.kubernetes_clusters.get_kubernetes_cluster():response.data.attributes.nodes[].versionAddedlatitudesh.teams_members.add():responseChangedlatitudesh.servers.lock():response.data.attributes.vpcAddedlatitudesh.servers.unlock():response.data.attributes.vpcAddedlatitudesh.servers.schedule_deletion():response.metaAddedlatitudesh.elastic_ips.delete_elastic_ip_bgp_session():errorChangedlatitudesh.elastic_ips.get_elastic_ip_bgp_session():error.status[404]Addedlatitudesh.filesystem_storage.list_filesystems():requestChangedlatitudesh.ssh_keys.get_ssh_keys():requestChangedlatitudesh.teams.get():response.data[].typeAddedlatitudesh.elastic_ips.create_elastic_ip_bgp_session():errorChangedlatitudesh.teams.update():responseChangedlatitudesh.user_profile.get():response.metaAddedlatitudesh.virtual_machines.create():request.x_correlation_idAddedresponse.data.attributesChangedlatitudesh.virtual_machines.list():request.x_correlation_idAddedresponse.data[].attributesChangedlatitudesh.virtual_machines.get():response.data.attributesChangedlatitudesh.virtual_machines.update_virtual_machine():request.x_correlation_idAddedresponse.data.attributesChangedlatitudesh.elastic_ips.list_elastic_ip_bgp_sessions():error.status[404]Addedlatitudesh.virtual_machine_backups.create_virtual_machine_backup():response.data.attributes.progressAddedlatitudesh.baselines_(preview).create_baseline():request.data.attributes.biosChangedlatitudesh.virtual_machine_backups.create_virtual_machine_backup_top_level():response.data.attributes.progressAddedlatitudesh.inference.get_inference_usage():response.by_model[]Changedlatitudesh.virtual_machine_backups.delete_virtual_machine_backup():response.data.attributes.progressAddedlatitudesh.api_keys.update_api_key():response.metaAddedlatitudesh.api_keys.regenerate():response.metaAddedlatitudesh.api_keys.create():response.metaAddedlatitudesh.virtual_machines.unlock_virtual_machine(): Addedlatitudesh.private_networks.list():response.data[].attributes.siteAddedlatitudesh.private_networks.create():response.data.attributes.siteAddedlatitudesh.private_networks.update():response.data.attributes.siteAddedlatitudesh.private_networks.get():response.data.attributes.siteAddedlatitudesh.private_networks.list_assignments():response.data[].attributes.server_idAddedlatitudesh.private_networks.assign():response.data.attributes.server_idAddedlatitudesh.managed_databases.create_managed_database(): Deprecatedlatitudesh.virtual_machines.lock_virtual_machine(): AddedView full SDK changelog
OpenAPI Change Summary
View full report
Linting Report
0 errors, 0 warnings, 147 hintsView full report
PYTHON CHANGELOG
No relevant generator changes
Based on Speakeasy CLI 1.813.0
Last updated by Speakeasy workflow