Update iterator to take a method and **kwargs #1554
Labels
api: bigquery
Issues related to the BigQuery API.
api: cloudresourcemanager
Issues related to the Resource Manager API.
api: core
api: dns
Issues related to the Cloud DNS API.
api: pubsub
Issues related to the Pub/Sub API.
api: storage
Issues related to the Cloud Storage API.
gcloud.iterator.Iterator
is a base class, relying on apath
for the API method. I think it would be clearer if it wrapped around a method of a client (or other domain object), where that method takespage_token
,page_size
, etc., along with other named arguments in**kw
. We could then ditch all the derived classes, and just use the one, common implementation. E.g.:The text was updated successfully, but these errors were encountered: