We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e71c7 commit 8e443aaCopy full SHA for 8e443aa
compute/compute/snippets/sample_start_stop.py
@@ -43,7 +43,7 @@ def start_instance(project_id: str, zone: str, instance_name: str):
43
instance_client = compute_v1.InstancesClient()
44
op_client = compute_v1.ZoneOperationsClient()
45
46
- op = instance_client.start(project=project_id, zone=zone, instance=instance_name)
+ op = instance_client.start_unary(project=project_id, zone=zone, instance=instance_name)
47
48
while op.status != compute_v1.Operation.Status.DONE:
49
op = op_client.wait(operation=op.name, zone=zone, project=project_id)
0 commit comments