docs(samples): Changing machine type sample#9042
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
|
|
||
|
|
||
| # <INGREDIENT change_machine_type> | ||
| def change_machine_type(project_id: str, zone: str, instance_name: str, new_machine_type: str) -> NoReturn: |
There was a problem hiding this comment.
Why not just None? Is NoReturn necessary?
There was a problem hiding this comment.
You are right, I'm using NoReturn here incorrectly now that I checked the documentation. I'll fix this.
|
|
||
| wait_for_extended_operation(operation, "changing machine type") | ||
|
|
||
| return |
There was a problem hiding this comment.
Is the return necessary? (the code will work identical without the return)
There was a problem hiding this comment.
It's not necessary, it's my personal preference to put it there, like a period at the end of a sentence :D I'll remove it.
…pe.py Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
* docs(samples): Changing machine type sample * Applying suggestions * Wording fix * Update compute/client_library/ingredients/instances/change_machine_type.py Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com> * Applying suggestions --------- Co-authored-by: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com> Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
Description
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
nox -s py-3.9(see Test Environment Setup)nox -s lint(see Test Environment Setup)