Skip to content

Commit aa62c85

Browse files
authored
revert: move storage, bigquery, and compute to new auth lib (#2695)" (#2704)
This reverts commit 66ace6c.
1 parent 7b03cff commit aa62c85

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

‎bigquery/v2/bigquery-gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎compute/v0.alpha/compute-gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎compute/v0.beta/compute-gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎compute/v1/compute-gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎google-api-go-generator/gen.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ var skipAPIGeneration = map[string]bool{
8181
"datalineage:v1": true,
8282
}
8383

84+
// skipNewAuthLibrary is a set of APIs to not migrate to cloud.google.com/go/auth.
85+
var skipNewAuthLibrary = map[string]bool{
86+
"bigquery:v2": true,
87+
"compute:alpha": true,
88+
"compute:beta": true,
89+
"compute:v1": true,
90+
"storage:v1": true,
91+
}
92+
8493
var apisToSplit = map[string]bool{
8594
"compute": true,
8695
}
@@ -888,8 +897,9 @@ func (a *API) GenerateCode() ([]byte, error) {
888897
if a.mtlsAPIBaseURL() != "" {
889898
pn("opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))")
890899
}
891-
pn("opts = append(opts, internaloption.EnableNewAuthLibrary())")
892-
900+
if !skipNewAuthLibrary[a.ID] {
901+
pn("opts = append(opts, internaloption.EnableNewAuthLibrary())")
902+
}
893903
pn("client, endpoint, err := htransport.NewClient(ctx, opts...)")
894904
pn("if err != nil { return nil, err }")
895905
pn("s, err := New(client)")

‎storage/v1/storage-gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)