Add nextPageToken to fields argument against ServiceUsage api

This commit is contained in:
Kevin McHale 2018-07-06 15:37:19 -04:00
parent 6b02e9ccd9
commit 9c9eccc206

View File

@ -201,7 +201,7 @@ func getApiServices(pid string, config *Config, ignore map[string]struct{}) ([]s
ctx := context.Background()
return config.clientServiceUsage.Services.
List("projects/"+pid).
Fields("services/name").
Fields("services/name,nextPageToken").
Filter("state:ENABLED").
Pages(ctx, func(r *serviceusage.ListServicesResponse) error {
for _, v := range r.Services {