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

Most compute methods return an object if nil is passed in get #698

Closed
Temikus opened this issue Jul 21, 2018 · 2 comments
Closed

Most compute methods return an object if nil is passed in get #698

Temikus opened this issue Jul 21, 2018 · 2 comments
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@Temikus
Copy link

Temikus commented Jul 21, 2018

I would expect that, for example @compute.get_image(project, nil) should either return nil or raise an error. For most of compute methods, however it returns an object.

E.g. for get_image:

@compute.get_image(project, nil)
=> #<Google::Apis::ComputeV1::Image:0x00007fa663dfc4b8
 @id=0,
 @kind="compute#imageList",
 @self_link="https://www.googleapis.com/compute/v1/projects/my-project/global/images/">
@JustinBeckwith JustinBeckwith added triage me I really want to be triaged. 🚨 This issue needs some love. labels Jul 22, 2018
@TheRoyalTnetennba TheRoyalTnetennba added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Aug 6, 2018
@JustinBeckwith JustinBeckwith removed triage me I really want to be triaged. 🚨 This issue needs some love. labels Aug 6, 2018
@bajajneha27
Copy link
Contributor

Hi @Temikus
Thank you for your patience here.
The google cloud compute gem is now GRPC based. Would it be possible for you to use that instead? We're maintaining GRPC gems more currently.

@NivedhaSenthil
Copy link
Member

Closing this issue in favour of the modern gem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

5 participants