Content-Length: 315700 | pFad | https://www.github.com/googleapis/python-compute/commit/8339c00db7eb693813511de7e3d7f8b28b709395

10B fix: correct region tag formatting (#102) · googleapis/python-compute@8339c00 · GitHub
Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 8339c00

Browse files
authored
fix: correct region tag formatting (#102)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-compute/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 2c5c91c commit 8339c00

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

samples/snippets/sample_pagination.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# [START compute_images_list_page ]
18-
# [START compute_images_list ]
17+
# [START compute_images_list_page]
18+
# [START compute_images_list]
1919
import google.cloud.compute_v1 as compute_v1
20-
# [END compute_images_list ]
21-
# [END compute_images_list_page ]
20+
# [END compute_images_list]
21+
# [END compute_images_list_page]
2222

2323

24-
# [START compute_images_list ]
24+
# [START compute_images_list]
2525
def print_images_list(project: str) -> None:
2626
"""
2727
Prints a list of all non-deprecated image names available in given project.
@@ -42,10 +42,10 @@ def print_images_list(project: str) -> None:
4242
# requests to the API for you, so you can simply iterate over all the images.
4343
for img in images_client.list(request=images_list_request):
4444
print(f" - {img.name}")
45-
# [END compute_images_list ]
45+
# [END compute_images_list]
4646

4747

48-
# [START compute_images_list_page ]
48+
# [START compute_images_list_page]
4949
def print_images_list_by_page(project: str, page_size: int = 10) -> None:
5050
"""
5151
Prints a list of all non-deprecated image names available in a given project,
@@ -70,7 +70,7 @@ def print_images_list_by_page(project: str, page_size: int = 10) -> None:
7070
print(f"Page {page_num}: ")
7171
for img in page.items:
7272
print(f" - {img.name}")
73-
# [END compute_images_list_page ]
73+
# [END compute_images_list_page]
7474

7575

7676
if __name__ == '__main__':

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://www.github.com/googleapis/python-compute/commit/8339c00db7eb693813511de7e3d7f8b28b709395

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy