hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.73k forks source link

Standardisation of how we handle pagination in plural datasources #19157

Open SarahFrench opened 2 months ago

SarahFrench commented 2 months ago

What kind of contribution is this issue about?

Other (specify in details)

Details

There are some examples of plural data sources in the provider that handle pagination and don't use client libraries for HTTP requests:

We could try and standardise what this code looks like to help with possible generation of plural datasources in future. Standardising what the code looks like could also lead to making a helper function, so that handling pagination is a solved problem.

References

No response

bestefreund commented 1 week ago

:information_source: Add data source for retrieving multiple objects from a GCS bucket #17842 Add data source for retrieving multiple GCS buckets from a project #17845 Add data source for retrieving multiple GCE subnets #18108