GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — compute: vm: add resize() by stephenplusplus · Pull Request #1469 · googleapis/google-cloud-node Conversation
|
| } | ||
|
|
||
| callback = callback || common.util.noop; | ||
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
126105e to
00691a9
Compare
|
@callmehiphop could you take a look at the updates and see if this is the best case for the user? It should definitely be the most "automatic", I'm just not sure if it could create surprises. I've played with an |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| }); | ||
| }; | ||
|
|
||
| VM.prototype.execAfterOperation_ = function(callback) { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm a bit hesitant making all these guesses, only because to the user it might feel a bit magical. What if instead of just automatically doing all this, we added an option like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
That is an option, but makes the API have different response args to the user's callback. If we just do the API call, which assumes the VM is not running, we would return an operation. If we do a restart, what do we return? I thought it would be weird to return the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Perhaps |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
What would that look like? Having two methods for doing the same thing isn't very "us"-- in this case, I think we just have to pick one or the other. A machine type can only be changed if the machine isn't running, so that means if we just expose the "raw" way (just make the API call), the user will always have to call Maybe we should wait for the next meeting and bring it up then. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Feedback was to change to a name that implies magic is happening, i.e. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
00691a9 to
5152158
Compare
|
@callmehiphop PTAL! I renamed the method to *the method is not static because to use it from "VM", we introduce a cross dependency from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * [Predefined machine types]{@link https://cloud.google.com/compute/docs/machine-types#predefined_machine_types}. | ||
| * | ||
| * In order to change the machine type, the VM must not be running. This method | ||
| * will automatically stop the VM if it is running before changing the machine |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Coverage remained the same at 100.0% when pulling 457e882 on stephenplusplus:spp--1448 into 069d827 on GoogleCloudPlatform:master. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* compute: vm: add setMachineType * restart if necessary * rename to resize * add `start` option
Co-authored-by: Leah E. Cole <[email protected]>
🤖 I have created a release \*beep\* \*boop\* --- ## [5.16.0](https://www.github.com/googleapis/nodejs-spanner/compare/v5.15.2...v5.16.0) (2021-12-09) ### Features * add eslintignore for sameple generated code ([#1302](https://www.github.com/googleapis/nodejs-spanner/issues/1302)) ([#1520](https://www.github.com/googleapis/nodejs-spanner/issues/1520)) ([f835b72](https://www.github.com/googleapis/nodejs-spanner/commit/f835b721210d01b11d7f5751ee06f13518e7fe0f)) ### Bug Fixes * **build:** set default branch to main ([#1469](https://www.github.com/googleapis/nodejs-spanner/issues/1469)) ([152985a](https://www.github.com/googleapis/nodejs-spanner/commit/152985a1f783534e6b3e3ce332a1333dec67269d)) * **cloud-rad:** move comments for TSDoc ([#1509](https://www.github.com/googleapis/nodejs-spanner/issues/1509)) ([1c49922](https://www.github.com/googleapis/nodejs-spanner/commit/1c49922c75bd56dbd0456318bee8a336eb088156)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
* build: update Node.js generator to compile protos PiperOrigin-RevId: 582493526 Source-Link: googleapis/googleapis@7c4e4b5 Source-Link: googleapis/googleapis-gen@368cfb6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzY4Y2ZiNjUxMDE2ZDZhOTNjYTZlNDg4Y2JjMzRlMmQxZDlkMjEyYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-gax](https://togithub.com/googleapis/gax-nodejs) | [`2.29.0` -> `2.29.4`](https://renovatebot.com/diffs/npm/google-gax/2.29.0/2.29.4) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/gax-nodejs</summary> ### [`v2.29.4`](https://togithub.com/googleapis/gax-nodejs/blob/HEAD/CHANGELOG.md#​2294-httpsgithubcomgoogleapisgax-nodejscomparev2293v2294-2022-01-19) [Compare Source](https://togithub.com/googleapis/gax-nodejs/compare/v2.29.3...v2.29.4) ### [`v2.29.3`](https://togithub.com/googleapis/gax-nodejs/blob/HEAD/CHANGELOG.md#​2293-httpsgithubcomgoogleapisgax-nodejscomparev2292v2293-2022-01-11) [Compare Source](https://togithub.com/googleapis/gax-nodejs/compare/v2.29.2...v2.29.3) ### [`v2.29.2`](https://togithub.com/googleapis/gax-nodejs/blob/HEAD/CHANGELOG.md#​2292-httpsgithubcomgoogleapisgax-nodejscomparev2291v2292-2022-01-11) [Compare Source](https://togithub.com/googleapis/gax-nodejs/compare/v2.29.1...v2.29.2) ### [`v2.29.1`](https://togithub.com/googleapis/gax-nodejs/blob/HEAD/CHANGELOG.md#​2291-httpswwwgithubcomgoogleapisgax-nodejscomparev2290v2291-2022-01-06) [Compare Source](https://togithub.com/googleapis/gax-nodejs/compare/v2.29.0...v2.29.1) </details> --- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-pubsub).
🤖 I have created a release *beep* *boop* --- ### [2.18.5](googleapis/nodejs-pubsub@v2.18.4...v2.18.5) (2022-01-21) ### Bug Fixes * **deps:** update dependency @opentelemetry/semantic-conventions to v1 ([#1407](googleapis/nodejs-pubsub#1407)) ([740d78c](googleapis/nodejs-pubsub@740d78c)) * **deps:** update dependency google-gax to v2.29.0 ([#1452](googleapis/nodejs-pubsub#1452)) ([f419137](googleapis/nodejs-pubsub@f419137)) * **deps:** update dependency google-gax to v2.29.4 ([#1469](googleapis/nodejs-pubsub#1469)) ([8abbfa7](googleapis/nodejs-pubsub@8abbfa7)) * update to work with latest node types (changed the return type of Stream.destroy()) ([#1464](googleapis/nodejs-pubsub#1464)) ([fddc2e7](googleapis/nodejs-pubsub@fddc2e7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.