Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into samples-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
m-strzelczyk committed Nov 9, 2021
2 parents fe3d984 + aedd148 commit 5d67138
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions samples/snippets/sample_start_stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@
"""
A sample script showing how to start and stop Google Compute Engine instances.
"""

# [START compute_start_instance]
# [START compute_start_enc_instance]
# [START compute_stop_instance]
# [START compute_reset_instance]
from google.cloud import compute_v1

# [END compute_reset_instance]
# [END compute_stop_instance]
# [END compute_start_enc_instance]
# [END compute_start_instance]


# [START compute_start_instance]
def start_instance(project_id: str, zone: str, instance_name: str):
Expand Down

0 comments on commit 5d67138

Please sign in to comment.