According to this
maxResults should be:
Maximum combined number of entries in items[] and prefixes[] to return in a single page of responses. Because duplicate entries in prefixes[] are omitted, fewer total results may be returned than requested. The service uses this parameter or 1,000 items, whichever is smaller.
When I do this:
client = storage.Client()
bucket = storage.Bucket(client, "<bucket_name>")
blobs_iterator = client.list_blobs(bucket, max_results=10)
for page in blobs_iterator.pages:
print(page.num_items)
Output:
Only one iteration of the loop is completed even though there are 100 blobs in the bucket. It seems the max_results argument is limiting the total results rather than per page results.
Related to #19
According to this
maxResultsshould be:When I do this:
Output:
Only one iteration of the loop is completed even though there are 100 blobs in the bucket. It seems the
max_resultsargument is limiting the total results rather than per page results.Related to #19