Skip to content

Commit

Permalink
chore(docs): Fix a minor typo (#297)
Browse files Browse the repository at this point in the history
* Fix a minor typo

* chore(docs): Fix a minor typo
  • Loading branch information
savijatv authored Jun 27, 2022
1 parent 2a7f7b0 commit 52e192f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion compute/compute/ingredients/instances/resume.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def resume_instance(project_id: str, zone: str, instance_name: str) -> None:
Args:
project_id: project ID or project number of the Cloud project your instance belongs to.
zone: name of the zone your instance belongs to.
instance_name: name of the instance your want to resume.
instance_name: name of the instance you want to resume.
"""
instance_client = compute_v1.InstancesClient()

Expand Down
4 changes: 2 additions & 2 deletions compute/compute/ingredients/instances/suspend.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ def suspend_instance(project_id: str, zone: str, instance_name: str) -> None:
Args:
project_id: project ID or project number of the Cloud project your instance belongs to.
zone: name of the zone your instance belongs to.
instance_name: name of the instance your want to suspend.
instance_name: name of the instance you want to suspend.
"""
instance_client = compute_v1.InstancesClient()

operation = instance_client.suspend(
project=project_id, zone=zone, instance=instance_name
)

wait_for_extended_operation(operation, "instance suspend")
wait_for_extended_operation(operation, "suspend instance")
return
# </INGREDIENT>

2 changes: 1 addition & 1 deletion compute/compute/snippets/instances/resume.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def resume_instance(project_id: str, zone: str, instance_name: str) -> None:
Args:
project_id: project ID or project number of the Cloud project your instance belongs to.
zone: name of the zone your instance belongs to.
instance_name: name of the instance your want to resume.
instance_name: name of the instance you want to resume.
"""
instance_client = compute_v1.InstancesClient()

Expand Down
4 changes: 2 additions & 2 deletions compute/compute/snippets/instances/suspend.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ def suspend_instance(project_id: str, zone: str, instance_name: str) -> None:
Args:
project_id: project ID or project number of the Cloud project your instance belongs to.
zone: name of the zone your instance belongs to.
instance_name: name of the instance your want to suspend.
instance_name: name of the instance you want to suspend.
"""
instance_client = compute_v1.InstancesClient()

operation = instance_client.suspend(
project=project_id, zone=zone, instance=instance_name
)

wait_for_extended_operation(operation, "instance suspend")
wait_for_extended_operation(operation, "suspend instance")
return


Expand Down

0 comments on commit 52e192f

Please sign in to comment.