Re: Sample code to access cloud.google.com / google compute engine ?

2019-05-15 Thread Pontus Östlund
> On 15 May 2019, at 15:30, Stephen R. van den Berg wrote: > > Does anyone happen to have some boilerplate code which they can share > that uses Pike to get the authorisation tokens required to create > and delete google compute engine instances? > > [...] > > In my case I only need to call

Re: Sample code to access cloud.google.com / google compute engine ?

2019-05-15 Thread William Welliver
I don't have the exact use case you describe, but it seems like the code I've used uin the past would work just fine. The idea is that trather than initiating a user interactive session that pops up a browser toget a token, you already have it, so you can just skip that step and pass the token

Sample code to access cloud.google.com / google compute engine ?

2019-05-15 Thread Stephen R. van den Berg
Does anyone happen to have some boilerplate code which they can share that uses Pike to get the authorisation tokens required to create and delete google compute engine instances? Basically I need to follow this guide: https://developers.google.com/identity/protocols/OAuth2ServiceAccount Which