From 8339c00db7eb693813511de7e3d7f8b28b709395 Mon Sep 17 00:00:00 2001 From: Jonathan L Date: Wed, 18 Aug 2021 01:12:23 -0700 Subject: [PATCH] fix: correct region tag formatting (#102) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 # 🦕 --- samples/snippets/sample_pagination.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/samples/snippets/sample_pagination.py b/samples/snippets/sample_pagination.py index 99ab80b09..378d0512d 100644 --- a/samples/snippets/sample_pagination.py +++ b/samples/snippets/sample_pagination.py @@ -14,14 +14,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -# [START compute_images_list_page ] -# [START compute_images_list ] +# [START compute_images_list_page] +# [START compute_images_list] import google.cloud.compute_v1 as compute_v1 -# [END compute_images_list ] -# [END compute_images_list_page ] +# [END compute_images_list] +# [END compute_images_list_page] -# [START compute_images_list ] +# [START compute_images_list] def print_images_list(project: str) -> None: """ Prints a list of all non-deprecated image names available in given project. @@ -42,10 +42,10 @@ def print_images_list(project: str) -> None: # requests to the API for you, so you can simply iterate over all the images. for img in images_client.list(request=images_list_request): print(f" - {img.name}") -# [END compute_images_list ] +# [END compute_images_list] -# [START compute_images_list_page ] +# [START compute_images_list_page] def print_images_list_by_page(project: str, page_size: int = 10) -> None: """ 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: print(f"Page {page_num}: ") for img in page.items: print(f" - {img.name}") -# [END compute_images_list_page ] +# [END compute_images_list_page] if __name__ == '__main__':