Skip to content

Commit

Permalink
feat(gcp): Increase PageSize for ServiceUsage (#5386)
Browse files Browse the repository at this point in the history

#### Summary

Default pageSize is 50... This PR raises it to the maximum allowed, which is 200

[Docs here](https://pkg.go.dev/cloud.google.com/go/serviceusage/apiv1/serviceusagepb#ListServicesRequest)
  • Loading branch information
bbernays committed Dec 5, 2022
1 parent b3850cf commit dec5ca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/source/gcp/codegen/recipes/serviceusage.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ func ServiceusageResources() []*Resource {
resource.ProtobufImport = "google.golang.org/genproto/googleapis/api/serviceusage/v1"
resource.Template = "newapi_list"
resource.MockTemplate = "newapi_list_grpc_mock"
resource.RequestStructFields = `Parent: "projects/" + c.ProjectId,`
resource.RequestStructFields = `Parent: "projects/" + c.ProjectId,
PageSize: 200,`
}

return resources
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dec5ca7

Please sign in to comment.