-
Notifications
You must be signed in to change notification settings - Fork 24
docs(samples): Samples for custom vm types #155
Conversation
|
Here is the summary of changes. You are about to add 8 region tags.
This comment is generated by snippet-bot.
|
savijatv
left a comment
There was a problem hiding this 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?
engelke
left a comment
There was a problem hiding this 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.
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:
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.