Skip to content

Commit bafaaf6

Browse files
authored
Revert "conditionally enable directpath for storagecontrol.googleapis.com (#1…" (#1667)
This reverts commit 1e451fa.
1 parent ed22ba9 commit bafaaf6

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

internal/gengapic/generator.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ var enableWrapperTypesForPageSize = map[string]bool{
4141
"google.cloud.bigquery.v2": true,
4242
}
4343

44-
// keyed by the API + service name joined by "/", e.g. "storage.googleapis.com/StorageControl".
45-
var enableDirectPath = map[string]bool{
46-
"storage.googleapis.com/StorageControl": true,
47-
// for test purposes.
48-
"showcase.googleapis.com/Foo": true,
49-
}
50-
5144
var enableMtlsHardBoundTokens = map[string]bool{
5245
"bigquery.googleapis.com": true,
5346
"cloudasset.googleapis.com": true,

internal/gengapic/gengrpc.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ func (g *generator) grpcClientOptions(serv *descriptorpb.ServiceDescriptorProto,
185185
p(" internaloption.WithDefaultUniverseDomain(%q),", googleDefaultUniverse)
186186
p(" internaloption.WithDefaultAudience(%q),", generateDefaultAudience(host))
187187
p(" internaloption.WithDefaultScopes(DefaultAuthScopes()...),")
188-
if _, ok := enableDirectPath[fmt.Sprintf("%s/%s", g.serviceConfig.GetName(), servName)]; ok {
189-
p(" internaloption.EnableDirectPath(true),")
190-
p(" internaloption.EnableDirectPathXds(),")
191-
}
192188
p(" internaloption.EnableJwtWithScope(),")
193189
if _, ok := enableMtlsHardBoundTokens[g.serviceConfig.GetName()]; ok {
194190
p("internaloption.AllowHardBoundTokens(\"MTLS_S2A\"),")

internal/gengapic/testdata/foo_opt.want

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ func defaultFooGRPCClientOptions() []option.ClientOption {
2323
internaloption.WithDefaultUniverseDomain("googleapis.com"),
2424
internaloption.WithDefaultAudience("https://foo.googleapis.com/"),
2525
internaloption.WithDefaultScopes(DefaultAuthScopes()...),
26-
internaloption.EnableDirectPath(true),
27-
internaloption.EnableDirectPathXds(),
2826
internaloption.EnableJwtWithScope(),
2927
internaloption.AllowHardBoundTokens("MTLS_S2A"),
3028
internaloption.EnableNewAuthLibrary(),

0 commit comments

Comments
 (0)