-
Notifications
You must be signed in to change notification settings - Fork 924
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
Google Storage permissions support #860
Conversation
Don't think I should have been pinged here? |
Ah, yes. Sorry, about that, Rickard. I was looking over a previous bug patch we had discussed. |
@crunk1 can you explain the motivations behind the PR please? |
Google Cloud Storage doesn't have a method exposed to query for, or set, permissions on containers or objects. This PR adds the functionality to do so. Internally at Google, I have built some libraries on top of libcloud and I need a way to get and set permissions on GCS entities. |
The IntEnum addition looks like it could be generically useful across more of the code base. I'm pretty sure I've used dicts and sorted key lists for things like this. But I wonder if it would be better to decouple this and introduce IntEnum more broadly (across more of libcloud) to help us all move to this model? My concern with keeping it joined with the GCS changes, we'd all forget about it and the generic solution would not get adopted elsewhere at which point, this becomes a more complex solution than needed purely for the GCS changes. wdyt? /cc @supertom |
I think it is a little beyond the scope of this PR, but I agree with your opinion. Could I put it in a subsequent PR? |
Yes please! I think teasing that out separately and doing something more basic for GCS now would be easier. |
…sions to libcloud.storage.drivers.google_storage.GoogleStorageDriver - Added a JSON connection to the GoogleStorageDriver. - The JSON connection is only used in the new methods I added. Added tests for changes. Tests: python setup.py test python3.4 setup.py test
PTAL, IntEnum logic and other cleanup removed from this PR. |
Thanks @crunk1! 👯 |
Tests:
python setup.py test
python3.4 setup.py test