Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set alias for image list params, added sort param #362

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matthi4s
Copy link

I added alias/sentAs definitions to some parameters of the ImagesV2 getImages() function which was missing and also added the sort parameter. https://docs.openstack.org/api-ref/image/v2/index.html?expanded=list-images-detail#list-images

The sortKey and sortDir parameters are abstract and also used in the BlockStorageV2 API, but from what I could find they are not really supported there: https://docs.openstack.org/api-ref/block-storage/v2/?expanded=list-snapshots-with-details-detail#list-snapshots-with-details

They are supported in the backups method, but from what I could find, this is not implemented in this library: https://docs.openstack.org/api-ref/block-storage/v2/?expanded=list-backups-with-details-detail#list-backups-with-details
But they use the same alias there and the sort_key and sort_dir alias follow the naming scheme, so I think it's safe to change it in the abstract class.

Copy link
Member

@k0ka k0ka left a comment

Choose a reason for hiding this comment

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

Surprisingly BlockStorage does use sortKey and sortDir.
I added fixes for it and tests.
You might add tests for sort and other fields

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.

2 participants