-
Notifications
You must be signed in to change notification settings - Fork 146
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
Support for current google-api-client (0.9) #172
Comments
As we mention in the readme, we don't support 0.9 yet. Mainly because of time. We accept pull requests to upgrade us to 0.9 support, but currently do not support it. |
Thanks for the quick response. I see that now.
I guess I didn't realize on initial read this meant that it doesn't support 0.9, but that is what it says. I will need to look at our requirements and whether we can use It looks like you were willing to drop older |
Oh totally, we'd love to make that a thing. I started #100 forever ago, but due to my work, I've been unable to touch it. If you'd like to send us a PR to get us there, we'd love to move forward. |
Also, I'll update the readme to be more explicit. |
Ok, I'll take a look at it. I took a stab at getting our code to work directly with the API and it's not pretty. Would be nice to hide that inside of a
For my part, I'm not a fan of all the auto-generated classes for JSON objects, that could be more succinctly handled as Hashes. |
@jeremywadsack +1 when referring to the classes vs just using plain hashes. I'm working on adding coverage to the compute api for tests (the existing tests are flaky); hopefully I can send that PR soon so you'll be able to leverage it to feel more confident about your change. |
Could we also use this client instead? https://github.com/GoogleCloudPlatform/google-cloud-ruby#storage it's a real API client (not an auto generated one). And supports the latest stuff on google cloud storage |
@JanStevens While I do agree that it's nicer to use, it's still based on google-api-client, so it'll add yet another abstraction layer to wrangle with. Additionally, it doesn't support certain critical API's like If the library ever replaces |
@JanStevens I'm curious which pieces are missing for Google cloud Storage that you'd like to use? Is it related to the JSON API? |
Good point @selmanj! |
@selmanj @Temikus After some research and digging in the code, yea it is based on google-api-client (didn't knew that before) so it doesn't really matter. Originally I was looking for the signed urls from google, I'm using carrierwave with fog-google and couldn't find how to do this. Thats why I posted the issue since I did found it in the google-cloud-ruby storage API. Now I found out you can use So thanks for everything nvm my comment 🍡 |
I've tried to integrate this with our system that already uses
google-api-client
0.9.x, but it doesn't seem to work:We have the client gem installed:
Looking at the code, I see that you've written this for the old 0.8-style client API.
0.8 branch was last updated on April 14, 2015, more than 18 months ago.
To change to the new code you would
require 'google/apis/compute_v1'
and update the client calls as described in the MIGRATING doc.I can take a stab at an overhaul PR, but have two questions:
google-api-client
0.8.6 compatibility?The text was updated successfully, but these errors were encountered: