You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed we have a few APIs where the version isn't in the normal "vNNN" form:
ante:api $ find -type d | grep _v
./admin/directory_v1
./admin/reports_v1
./admin/email_migration_v2
ante:api $ head admin/directory_v1/admin-gen.go
// Package admin provides access to the Admin Directory API.
//
// See https://developers.google.com/admin-sdk/directory/
//
// Usage example:
//
// import "google.golang.org/api/admin/directory_v1"
// ...
// adminService, err := admin.New(oauthHttpClient)
package admin
That means you'd import import "google.golang.org/api/admin/directory_v1" but refer to it as admin, which is weird.
Further, https://code-review.googlesource.com/#/c/2370/ proposes adding import "google.golang.org/api/computeaccounts/alpha" imported as computeaccounts, which is even weirder, since it doesn't even have "v" in the final path component.
We should remap these to something cleaner. Like google.golang.org/api/admin/directory/v1 and google.golang.org/api/computeaccounts/v0.alpha perhaps.
I just noticed we have a few APIs where the version isn't in the normal "vNNN" form:
That means you'd import
import "google.golang.org/api/admin/directory_v1"
but refer to it asadmin
, which is weird.Further, https://code-review.googlesource.com/#/c/2370/ proposes adding
import "google.golang.org/api/computeaccounts/alpha"
imported ascomputeaccounts
, which is even weirder, since it doesn't even have "v" in the final path component.We should remap these to something cleaner. Like
google.golang.org/api/admin/directory/v1
andgoogle.golang.org/api/computeaccounts/v0.alpha
perhaps./cc @gmlewis
The text was updated successfully, but these errors were encountered: