From 3b4ff655b4268bf56865344c5aa38c4c135a148f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 14 Dec 2021 02:41:25 +0000 Subject: [PATCH 1/2] chore(deps): update dependency google-cloud-compute to v0.9.0 --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 3d8cb4e6c..e2693e6f2 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-compute==0.8.0 \ No newline at end of file +google-cloud-compute==0.9.0 \ No newline at end of file From 879b8fc9ca7b8c6b98887b949454cff29bf40558 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 14 Dec 2021 02:46:13 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- samples/snippets/sample_start_stop.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/snippets/sample_start_stop.py b/samples/snippets/sample_start_stop.py index 80eb95f8e..a73f05ba5 100644 --- a/samples/snippets/sample_start_stop.py +++ b/samples/snippets/sample_start_stop.py @@ -43,7 +43,9 @@ def start_instance(project_id: str, zone: str, instance_name: str): instance_client = compute_v1.InstancesClient() op_client = compute_v1.ZoneOperationsClient() - op = instance_client.start_unary(project=project_id, zone=zone, instance=instance_name) + op = instance_client.start_unary( + project=project_id, zone=zone, instance=instance_name + ) while op.status != compute_v1.Operation.Status.DONE: op = op_client.wait(operation=op.name, zone=zone, project=project_id)