@google-cloud/compute
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -7,2 +7,9 @@ # Changelog | ||
## [2.2.0](https://www.github.com/googleapis/nodejs-compute/compare/v2.1.0...v2.2.0) (2020-09-30) | ||
### Features | ||
* support a source template when creating a VM ([#500](https://www.github.com/googleapis/nodejs-compute/issues/500)) ([62f33be](https://www.github.com/googleapis/nodejs-compute/commit/62f33be7b84bff7d75b38b20dbd29e0642359bb2)) | ||
## [2.1.0](https://www.github.com/googleapis/nodejs-compute/compare/v2.0.3...v2.1.0) (2020-08-10) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "@google-cloud/compute", | ||
"description": "Google Compute Engine Client Library for Node.js", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"license": "Apache-2.0", | ||
@@ -55,5 +55,8 @@ "author": "Google Inc.", | ||
"devDependencies": { | ||
"@microsoft/api-documenter": "^7.8.10", | ||
"@microsoft/api-extractor": "^7.8.10", | ||
"c8": "^7.0.0", | ||
"codecov": "^3.0.2", | ||
"concat-stream": "^2.0.0", | ||
"gts": "^2.0.0", | ||
"gts": "^2.0.2", | ||
"jsdoc": "^3.6.2", | ||
@@ -64,10 +67,6 @@ "jsdoc-fresh": "^1.0.1", | ||
"mocha": "^8.0.0", | ||
"c8": "^7.0.0", | ||
"prettier": "^1.13.5", | ||
"proxyquire": "^2.0.1", | ||
"uuid": "^8.0.0", | ||
"typescript": "^3.8.3", | ||
"@microsoft/api-documenter": "^7.8.10", | ||
"@microsoft/api-extractor": "^7.8.10" | ||
"uuid": "^8.0.0" | ||
} | ||
} |
@@ -175,3 +175,3 @@ /*! | ||
id: name, | ||
createMethod: function(name, options, callback) { | ||
createMethod: function (name, options, callback) { | ||
if (is.fn(options)) { | ||
@@ -178,0 +178,0 @@ callback = options; |
@@ -143,3 +143,3 @@ /*! | ||
this.interceptors.push({ | ||
request: function(reqOpts) { | ||
request: function (reqOpts) { | ||
if (reqOpts.uri.indexOf('/global/forwardingRules') > -1) { | ||
@@ -146,0 +146,0 @@ reqOpts.uri = reqOpts.uri.replace('/global', ''); |
@@ -584,2 +584,3 @@ /*! | ||
const self = this; | ||
const query = {}; | ||
const body = Object.assign( | ||
@@ -597,2 +598,6 @@ { | ||
); | ||
if (body.template) { | ||
query.sourceInstanceTemplate = body.template; | ||
delete body.template; | ||
} | ||
if (body.machineType.indexOf('/') === -1) { | ||
@@ -669,2 +674,3 @@ // The specified machineType is only a partial name, e.g. 'n1-standard-1'. | ||
uri: '/instances', | ||
qs: query, | ||
json: body, | ||
@@ -671,0 +677,0 @@ }, |
Sorry, the diff of this file is too big to display
438807
14
11643