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

Migrate to the new Google API gems #658

Open
tas50 opened this issue Jan 19, 2021 · 1 comment
Open

Migrate to the new Google API gems #658

tas50 opened this issue Jan 19, 2021 · 1 comment

Comments

@tas50
Copy link
Contributor

tas50 commented Jan 19, 2021

Background

This project currently uses the monolithic google-api-client gem, which is 59 megs when installed. This gem ships with a massive amount of stuff we don't use or want to install on every workstation. Thankfully Google split the gem out, similar to the aws-sdk gems, and will only be supporting those new gems going forward.

Work to Do

Google has produced a list of all the new gems here: https://github.com/googleapis/google-cloud-ruby

They will only be supporting these new gems going forward and we want to make sure we complete the migration to the new gems as soon as possible. We'll need to complete these steps:

  • Evaluate which gems we'll need to use for this project
  • Upgrade the codebase to these new gems
  • Test, test, test
  • Prep a release, which we will coordinate across the various Chef Workstation projects using the previous gem.

Impacted Projects

  • knife-google
  • kitchen-google
  • inspec-gcp
  • train
@dazuma
Copy link

dazuma commented Jul 6, 2023

The correct link for the gems that were actually split out from the old google-api-client monolith is: https://github.com/googleapis/google-api-ruby-client/tree/main/generated

We (the Google Ruby team) recommend that you identify which client gems you need from there, and depend on those explicitly rather than depending on google-api-client. The individual gems should be drop-in replacements for their classes in the monolith.

(https://github.com/googleapis/google-cloud-ruby is a separate project developing a set of next-generation client libraries. It is a much more robust system, and under active development (whereas the clients from the old google-api-client system are in maintenance mode). However, the interfaces are significantly different, and some APIs are not yet available in the next-generation clients.)

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

No branches or pull requests

2 participants