java-docs-samples icon indicating copy to clipboard operation
java-docs-samples copied to clipboard

docs(compute-samples): added samples for moving VM instances

Open Sita04 opened this issue 3 years ago • 4 comments

Added samples to move instances across zones (https://cloud.google.com/compute/docs/instances/moving-instance-across-zones)

Apologies for the PR size.

Sita04 avatar Jul 21 '22 12:07 Sita04

Here is the summary of changes.

You are about to add 11 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

snippet-bot[bot] avatar Jul 21 '22 12:07 snippet-bot[bot]

Thank you very much for the samples @Sita04 , these looks great 😃

Just a few thoughts:

  • I see that there are multiple different actions that are part of this PR. I feel like it will make it easy on the reviewers if this was broken into multiple PRs.

    • Get instance
    • ListDisks, CreateEmptyDisk, DeleteDisk
    • CreateWithDisks, CreateDiskFromImage, CreateDiskFromSnapshot
    • ListSnapshots, CreateSnapshot, DeleteSnapshot
    • SetDiskAutodelete
  • Breaking up the PR will also ensure that important details of the PR are not overlooked by the reviewers

  • Also, was the expectation to write a specific sample to showcase instance migration to a new zone? I looked around and couldn't exactly find a specific sample that shows this action.

Let me know what you think.

Shabirmean avatar Jul 22 '22 19:07 Shabirmean

Thanks for the review, @Shabirmean :)

Agree with the PR splitting strategy. Would be easier for the reviewers. I will be more careful the next time. Thanks for pointing it out.

the expectation to write a specific sample to showcase instance migration to a new zone?

Yes, these samples represent a collection that could be used in the doc under moving VM instances page. They do not refer to a sample on how to move instances. Please refer to this bug for more info: b/202504009

Sita04 avatar Jul 22 '22 19:07 Sita04

@Shabirmean Thanks for the review. I've incorporated your suggestions. PTAL.

Sita04 avatar Jul 29 '22 17:07 Sita04