Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da1a5a9

Browse files
chore: Update region tags (GoogleCloudPlatform#11935)
* chore: Update region tags Removing unused region tags not associated with a product and not used in documentation. Sample code that is part of a larger sample is remaining in this file. Adding product prefix to wait_for_operation as it is referenced in documentation. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent a1aa509 commit da1a5a9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

compute/api/create_instance.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import googleapiclient.discovery
3232

3333

34-
# [START list_instances]
3534
def list_instances(
3635
compute: object,
3736
project: str,
@@ -51,9 +50,6 @@ def list_instances(
5150
return result["items"] if "items" in result else None
5251

5352

54-
# [END list_instances]
55-
56-
5753
# [START compute_create_instance]
5854
# [START create_instance]
5955
def create_instance(
@@ -146,7 +142,6 @@ def create_instance(
146142
# [END compute_create_instance]
147143

148144

149-
# [START delete_instance]
150145
def delete_instance(
151146
compute: object,
152147
project: str,
@@ -169,9 +164,7 @@ def delete_instance(
169164
)
170165

171166

172-
# [END delete_instance]
173-
174-
167+
# [START compute_wait_for_operation]
175168
# [START wait_for_operation]
176169
def wait_for_operation(
177170
compute: object,
@@ -208,9 +201,9 @@ def wait_for_operation(
208201

209202

210203
# [END wait_for_operation]
204+
# [END compute_wait_for_operation]
211205

212206

213-
# [START run]
214207
def main(
215208
project: str,
216209
bucket: str,
@@ -274,4 +267,3 @@ def main(
274267
args = parser.parse_args()
275268

276269
main(args.project_id, args.bucket_name, args.zone, args.name)
277-
# [END run]

0 commit comments

Comments
 (0)