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

docs(samples): Adding samples for image creation and deletion#270

Merged
m-strzelczyk merged 10 commits intomainfrom
samples-windows
Apr 26, 2022
Merged

docs(samples): Adding samples for image creation and deletion#270
m-strzelczyk merged 10 commits intomainfrom
samples-windows

Conversation

@m-strzelczyk
Copy link
Contributor

Samples to create and delete images. The compute_windows_image_create region is here to match https://github.com/googleapis/nodejs-compute/pull/703/files

@m-strzelczyk m-strzelczyk requested a review from a team as a code owner April 23, 2022 09:52
@m-strzelczyk m-strzelczyk requested review from a team and loferris April 23, 2022 09:52
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: compute Issues related to the googleapis/python-compute API. samples Issues that are directly related to samples. labels Apr 23, 2022
@snippet-bot
Copy link

snippet-bot bot commented Apr 23, 2022

Here is the summary of changes.

You are about to add 3 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@m-strzelczyk m-strzelczyk added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 24, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 24, 2022
@m-strzelczyk m-strzelczyk added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 25, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 25, 2022
@m-strzelczyk m-strzelczyk added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 25, 2022
@yoshi-kokoro yoshi-kokoro removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Apr 25, 2022
Copy link
Contributor

@parthea parthea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added minor observations

if not force_create:
raise RuntimeError(f"Instance {disk_user} should be stopped. Please stop the instance using "
f"GCESysprep command or set forceCreate parameter to true (not recommended). "
f"More information here: https://cloud.google.com/compute/docs/instances/windows/creating-windows-os-image#api.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the instance always a windows instance or can it be a different OS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, you are right, this comment should specify what to do for Windows and what to do for Linux instances. Linux doesn't have GCESysprep, but should still be shut down before image creation. I'll update the message.

@m-strzelczyk m-strzelczyk added the automerge Merge the pull request once unit tests and other checks pass. label Apr 25, 2022
@gcf-merge-on-green
Copy link

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 25, 2022
@m-strzelczyk m-strzelczyk added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 26, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: compute Issues related to the googleapis/python-compute API. samples Issues that are directly related to samples. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants