Skip to content

Comments

Feature/more natural api#20

Merged
evemorgen merged 6 commits intomasterfrom
feature/more_natural_api
May 14, 2018
Merged

Feature/more natural api#20
evemorgen merged 6 commits intomasterfrom
feature/more_natural_api

Conversation

@evemorgen
Copy link
Contributor

This PR provides more natural way to interact with OS api. From now on, there is no need to provide body and params as kwargs, one need to pass its parameters via args and kwargs. To achieve that, ResourceProxy and MethodProxy has been implemented.

jaceksocha
jaceksocha previously approved these changes May 7, 2018
kwarunek
kwarunek previously approved these changes May 7, 2018
README.rst Outdated
============

The `AsyncOpenStackClient` is a rest wrapper for the OpenStack API. It provides very raw functionality; however, it has a nice abstraction for authentication. For method specification, see the official OpenStack documentation: https://docs.openstack.org/queens/api/.
The `AsyncOpenStackClient` is a asynchronous rest wrapper for the OpenStack API. It provides a nice abstraction for authentication and wraps some (not all of them) methods for the OpenStack Compute API. For method specification, see the official OpenStack documentation: https://docs.openstack.org/queens/api/.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would drop "and wraps some ... Compute API" part, because it has been mentioned already (methods listing below)

def __call__(self, *args, **kwargs):
return self.__await__(*args, **kwargs)

def __await__(self, *args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO __await__ is a bit confusing, despite the code you can't do await obj

Copy link
Contributor Author

Choose a reason for hiding this comment

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

shall we just move it to __call__?

@evemorgen evemorgen dismissed stale reviews from kwarunek and jaceksocha via 2a2f9af May 12, 2018 15:14
@evemorgen evemorgen merged commit 05dc9ca into master May 14, 2018
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