Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 691e38e

Browse filesBrowse files
authored
fix(compute): Updated max_results to 100 to avoid too many API calls (#108)
Based on @amanda-tarafa comment in C# sample (https://github.com/GoogleCloudPlatform/dotnet-docs-samples/pull/1445/files#r687921807) I am changing the max_results value to 100
1 parent 8339c00 commit 691e38e
Copy full SHA for 691e38e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎samples/snippets/sample_pagination.py

Copy file name to clipboardExpand all lines: samples/snippets/sample_pagination.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def print_images_list(project: str) -> None:
3434
"""
3535
images_client = compute_v1.ImagesClient()
3636
# Listing only non-deprecated images to reduce the size of the reply.
37-
images_list_request = compute_v1.ListImagesRequest(project=project, max_results=3,
37+
images_list_request = compute_v1.ListImagesRequest(project=project, max_results=100,
3838
filter="deprecated.state != DEPRECATED")
3939

4040
# Although the `max_results` parameter is specified in the request, the iterable returned

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.