Content-Length: 354280 | pFad | http://github.com/googleapis/python-compute/pull/297/files

06 chore(docs): Fix a minor typo by savijatv · Pull Request #297 · googleapis/python-compute · GitHub
Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

chore(docs): Fix a minor typo #297

Merged
merged 2 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/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 samples/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 samples/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 samples/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








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: http://github.com/googleapis/python-compute/pull/297/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy