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

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

docs(samples): Samples for custom vm types #155

Merged
merged 16 commits into from
Dec 14, 2021
Merged

Conversation

m-strzelczyk
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)

Some commentary about what is in this code sample. Since the documentation for custom machine types has very little in the means of examples for the API category, I figured it'd be nice to provide our users with something more useful, than just a bunch of strings showing the proper custom machine type string formatting.

I decided to implement a class, that customers can use to make their life easier when dealing with custom machine types. This class should take care of validating the proper CPU/memory values, provide the "extra memory" switch and handle the formatting of the string for them.

The examples we will then provide in the documentation page will show how to use this class, but also how to use simple strings, if someone doesn't want to use the helper class.

@snippet-bot
Copy link

snippet-bot bot commented Nov 17, 2021

Here is the summary of changes.

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

@product-auto-label product-auto-label bot added the api: compute Issues related to the googleapis/python-compute API. label Nov 17, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 17, 2021
@m-strzelczyk m-strzelczyk changed the title Samples custom vm types docs(samples): Samples for custom vm types Nov 17, 2021
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Nov 18, 2021
Copy link
Contributor

@savijatv savijatv left a comment

Choose a reason for hiding this comment

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

@m-strzelczyk , reviewed changes in the files. Are these files reviewed before the changes were made in this PR?

@m-strzelczyk m-strzelczyk self-assigned this Nov 19, 2021
@m-strzelczyk m-strzelczyk marked this pull request as ready for review November 23, 2021 13:13
@m-strzelczyk m-strzelczyk requested a review from a team as a code owner November 23, 2021 13:13
@m-strzelczyk m-strzelczyk requested a review from engelke November 23, 2021 13:13
@m-strzelczyk m-strzelczyk requested a review from a team as a code owner December 6, 2021 14:17
Copy link

@engelke engelke left a comment

Choose a reason for hiding this comment

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

Needs some fixes. See comments and failing tests. Once passing, LGTM.

@m-strzelczyk m-strzelczyk added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 10, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 10, 2021
@m-strzelczyk m-strzelczyk merged commit 76a1d29 into main Dec 14, 2021
@m-strzelczyk m-strzelczyk deleted the samples-custom-vm-types branch December 14, 2021 16:54
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. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants