Google-cloud-go: [Feature Request] Cloud Run

Created on 18 Nov 2019  路  5Comments  路  Source: googleapis/google-cloud-go

It would be very useful if we could interact with managed cloud run via API.

Use cases:

  • Deploy services / revisions
  • Delete services
  • Adjust environment variables

Most helpful comment

Looks like that API exists at https://godoc.org/google.golang.org/api/run/v1.

All 5 comments

I'm not aware of a cloudrun public API (I checked for protos in https://github.com/googleapis/googleapis/tree/master/google/cloud). Unless you're aware of one, would you mind filing an issue against the cloud run team? They have a public issue tracker at https://cloud.google.com/support/docs/issue-trackers.

Closing for now, but happy to continue the discussion.

It seems that Cloud Run only support a RESTful API (1), but you can use the discovery document (2) to generate an API client.

  1. https://cloud.google.com/run/docs/reference/rest/#rest-resource-v1namespacesservices
  2. https://run.googleapis.com/$discovery/rest?version=v1

Looks like that API exists at https://godoc.org/google.golang.org/api/run/v1.

Why are there two official GCP packages? Some mention of google.golang.org/api in the docs would be helpful, this one seems to be missing quite a bit so I thought they just weren't supported

Sorry for the confusion. @grayside is looking at this and the right way to fix it.

Was this page helpful?
0 / 5 - 0 ratings