Skip to content

Commit

Permalink
Change expected casing of sweeper parameters from snake to camel case. (
Browse files Browse the repository at this point in the history
#6513)

Will eventually be needed in order to implement DCL-based sweepers.
  • Loading branch information
trodge authored Sep 6, 2022
1 parent 1b5adcb commit 0176a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpgtools/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ func createResource(schema *openapi.Schema, info *openapi.Info, typeFetcher *Typ
// sweepable, in particular, such as nested resources or fine-grained
// resources. Additional special cases can be handled with overrides.
res.HasSweeper = true
validSweeperParameters := []string{"project", "region", "location", "zone", "billing_account"}
validSweeperParameters := []string{"project", "region", "location", "zone", "billingAccount"}
if deleteAllInfo, ok := typeFetcher.doc.Paths["deleteAll"]; ok {
for _, p := range deleteAllInfo.Parameters {
// if any field isn't a standard sweeper parameter, don't make a sweeper
Expand Down

0 comments on commit 0176a6d

Please sign in to comment.