Call for creating an image from a disk#44
Call for creating an image from a disk#44stephenplusplus merged 18 commits intogoogleapis:masterfrom
Conversation
Probably the function fits better in a different scope? On the other hand the path '/global/images' matches in project scope intrinsically.
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
CLA was signed |
|
Thanks for the PR. I think it should definitely be scoped where you put it (on |
| uri: '/global/images', | ||
| json: body, | ||
| }, | ||
| function(err, resp) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| * //- | ||
| */ | ||
| Project.prototype.createImage = function(imageName, disk, options, callback) { | ||
| var body = extend( |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| /** | ||
| * Create a image from disk in project. | ||
| * |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| * | ||
| * @param {string} imageName - Name of the target image. | ||
| * @param {Disk} disk - The source disk to create the image from. | ||
| * @param {object} options - Further options, for details please refer to |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Thanks for the quick reply and your suggestions. Having the call as well on Disk as well sounds good. On the other hand the disk relates to a Zone, which contradicts the 'global' concept. Thus, maybe better leave it as is, to avoid ambiguity? |
Codecov Report
@@ Coverage Diff @@
## master #44 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 18 19 +1
Lines 1526 1583 +57
=====================================
+ Hits 1526 1583 +57
Continue to review full report at Codecov.
|
👍 SGTM |
3ae2646 to
7e2a765
Compare
|
Looks like node4 is a bit flaky on CI for 'Compute' test case? |
|
So, I made another change and moved the new method from Most of our methods create or return a custom class, such as Disk. We generally expose What we should really do is create the I'm okay with not implementing those for the time being. However, before I merge, would you be interested in creating them? Let me know what you think! |
|
I signed it! |
|
Creating the |
e97ab2c to
e9e7a72
Compare
Some functions on Image concept are still missing in Image custom class
e9e7a72 to
f793469
Compare
|
Hey @cbastuck, thanks for doing all of this! Sorry I couldn't review sooner. I think it looks good. There might be a few trivial, convention things I'll take care of. I'll try to do this within the next day or so, and we can release right after. |
|
Hi @stephenplusplus sounds good. Do I have to do something regarding the CLA? Maybe re-authoring all commits with the email address I signed the CLA with? When signing I added my github username which links to the 'authored' address: mail@cbastuck.de. Probably this is not resolved? |
|
Actually, I think everything is fine with the bot. It has a known bug where it gets confused when a PR has two authors. Since you were fine before I pushed my commit, I believe we're good. (@alexander-fenster can you confirm?) |
|
Could you please add tests to improve the coverage? |
|
As for the bot, everything is OK as everyone have signed the CLA and as long as all parties are OK with the changes from all parties we are good to go.
So if all authors sign off the PR we can merge. |
|
I will add tests |
* chore: removing node7 job from CircleCI * chore: rename reference
|
I was completely blocked be the daily work and did not find the time to increase the test coverage as promised, sorry. |
|
No problem! Thanks for your work on this! |
Probably the function fits better in a different scope? On the other hand the path '/global/images' matches in project scope intrinsically.
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)
It's probably quicker to start a discussion from this PR?
no new issues introduced, already on master: 6 problems (6 errors, 0 warnings)
no tests have yet been added