@google-cloud/compute
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -7,2 +7,29 @@ # Changelog | ||
## [2.0.0](https://www.github.com/googleapis/nodejs-compute/compare/v1.2.0...v2.0.0) (2020-05-08) | ||
### ⚠ BREAKING CHANGES | ||
* update to latest version of gts and typescript (#433) | ||
* require node 10 in engines field (#431) | ||
### Features | ||
* require node 10 in engines field ([#431](https://www.github.com/googleapis/nodejs-compute/issues/431)) ([fe2897f](https://www.github.com/googleapis/nodejs-compute/commit/fe2897fd1d625df0ccf5b910ec850e761c2ed6d3)) | ||
### Bug Fixes | ||
* apache license URL ([#468](https://www.github.com/googleapis/nodejs-compute/issues/468)) ([#427](https://www.github.com/googleapis/nodejs-compute/issues/427)) ([02d63ed](https://www.github.com/googleapis/nodejs-compute/commit/02d63ed5a5a3559be0b5e49ed4c771b3661518a1)) | ||
* **deps:** update dependency @google-cloud/common to v3 ([#421](https://www.github.com/googleapis/nodejs-compute/issues/421)) ([d4469b6](https://www.github.com/googleapis/nodejs-compute/commit/d4469b693745df5a8a36b6988b7dba98f7d55142)) | ||
* **deps:** update dependency @google-cloud/paginator to v3 ([#419](https://www.github.com/googleapis/nodejs-compute/issues/419)) ([e667aee](https://www.github.com/googleapis/nodejs-compute/commit/e667aeecf7b9f51875c06cb6a885040828dc1181)) | ||
* **deps:** update dependency @google-cloud/projectify to v2 ([#418](https://www.github.com/googleapis/nodejs-compute/issues/418)) ([b861540](https://www.github.com/googleapis/nodejs-compute/commit/b861540aa17118a7508c7c970d84864a9028f588)) | ||
* **deps:** update dependency @google-cloud/promisify to v2 ([#417](https://www.github.com/googleapis/nodejs-compute/issues/417)) ([eedce75](https://www.github.com/googleapis/nodejs-compute/commit/eedce75e0d3f10dfed8151f12150d38d032f6a27)) | ||
* **deps:** update dependency @sendgrid/mail to v7 ([#424](https://www.github.com/googleapis/nodejs-compute/issues/424)) ([17af0f4](https://www.github.com/googleapis/nodejs-compute/commit/17af0f425354b261f9afc8ab30e16e66b7193fec)) | ||
### Build System | ||
* update to latest version of gts and typescript ([#433](https://www.github.com/googleapis/nodejs-compute/issues/433)) ([a4fa8cc](https://www.github.com/googleapis/nodejs-compute/commit/a4fa8cc21df7a894486832b05449fa7afc02b7ee)) | ||
## [1.2.0](https://www.github.com/googleapis/nodejs-compute/compare/v1.1.8...v1.2.0) (2020-01-23) | ||
@@ -9,0 +36,0 @@ |
{ | ||
"name": "@google-cloud/compute", | ||
"description": "Google Compute Engine Client Library for Node.js", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"license": "Apache-2.0", | ||
"author": "Google Inc.", | ||
"engines": { | ||
"node": ">=8.10.0" | ||
"node": ">10" | ||
}, | ||
@@ -29,15 +29,18 @@ "repository": "googleapis/nodejs-compute", | ||
"docs": "jsdoc -c .jsdoc.js", | ||
"lint": "eslint '**/*.js'", | ||
"lint": "gts check", | ||
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../", | ||
"system-test": "mocha system-test/*.js --timeout 1200000", | ||
"test": "c8 mocha", | ||
"fix": "eslint --fix '**/*.js'", | ||
"fix": "gts fix", | ||
"docs-test": "linkinator docs", | ||
"predocs-test": "npm run docs" | ||
"predocs-test": "npm run docs", | ||
"prelint": "cd samples; npm link ../; npm install", | ||
"clean": "gts clean", | ||
"precompile": "gts clean" | ||
}, | ||
"dependencies": { | ||
"@google-cloud/common": "^2.3.0", | ||
"@google-cloud/paginator": "^2.0.0", | ||
"@google-cloud/projectify": "^1.0.0", | ||
"@google-cloud/promisify": "^1.0.0", | ||
"@google-cloud/common": "^3.0.0", | ||
"@google-cloud/paginator": "^3.0.0", | ||
"@google-cloud/projectify": "^2.0.0", | ||
"@google-cloud/promisify": "^2.0.0", | ||
"arrify": "^2.0.0", | ||
@@ -53,18 +56,14 @@ "async": "^3.0.0", | ||
"concat-stream": "^2.0.0", | ||
"eslint": "^6.0.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"intelli-espower-loader": "^1.0.1", | ||
"gts": "^2.0.0", | ||
"jsdoc": "^3.6.2", | ||
"jsdoc-fresh": "^1.0.1", | ||
"jsdoc-region-tag": "^1.0.2", | ||
"linkinator": "^1.5.0", | ||
"mocha": "^7.0.0", | ||
"linkinator": "^2.0.0", | ||
"mocha": "^7.1.1", | ||
"c8": "^7.0.0", | ||
"power-assert": "^1.5.0", | ||
"prettier": "^1.13.5", | ||
"proxyquire": "^2.0.1", | ||
"uuid": "^3.2.1" | ||
"uuid": "^8.0.0", | ||
"typescript": "^3.8.3" | ||
} | ||
} |
@@ -58,26 +58,26 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
```javascript | ||
// Imports the Google Cloud client library | ||
const Compute = require('@google-cloud/compute'); | ||
// Imports the Google Cloud client library | ||
const Compute = require('@google-cloud/compute'); | ||
// Creates a client | ||
const compute = new Compute(); | ||
// Creates a client | ||
const compute = new Compute(); | ||
async function quickstart() { | ||
// Create a new VM using the latest OS image of your choice. | ||
const zone = compute.zone('us-central1-c'); | ||
async function quickstart() { | ||
// Create a new VM using the latest OS image of your choice. | ||
const zone = compute.zone('us-central1-c'); | ||
// TODO(developer): choose a name for the VM | ||
// const vmName = 'vm-name'; | ||
// TODO(developer): choose a name for the VM | ||
// const vmName = 'vm-name'; | ||
// Start the VM create task | ||
const [vm, operation] = await zone.createVM(vmName, {os: 'ubuntu'}); | ||
console.log(vm); | ||
// Start the VM create task | ||
const [vm, operation] = await zone.createVM(vmName, {os: 'ubuntu'}); | ||
console.log(vm); | ||
// `operation` lets you check the status of long-running tasks. | ||
await operation.promise(); | ||
// `operation` lets you check the status of long-running tasks. | ||
await operation.promise(); | ||
// Complete! | ||
console.log('Virtual machine created!'); | ||
} | ||
quickstart(); | ||
// Complete! | ||
console.log('Virtual machine created!'); | ||
} | ||
quickstart(); | ||
@@ -109,2 +109,23 @@ ``` | ||
## Supported Node.js Versions | ||
Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). | ||
Libraries are compatible with all current _active_ and _maintenance_ versions of | ||
Node.js. | ||
Client libraries targetting some end-of-life versions of Node.js are available, and | ||
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). | ||
The dist-tags follow the naming convention `legacy-(version)`. | ||
_Legacy Node.js versions are supported as a best effort:_ | ||
* Legacy versions will not be tested in continuous integration. | ||
* Some security patches may not be able to be backported. | ||
* Dependencies will not be kept up-to-date, and features will not be backported. | ||
#### Legacy tags available | ||
* `legacy-8`: install client libraries from this dist-tag for versions | ||
compatible with Node.js 8. | ||
## Versioning | ||
@@ -131,2 +152,8 @@ | ||
Please note that this `README.md`, the `samples/README.md`, | ||
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) | ||
are generated from a central template. To edit one of these files, make an edit | ||
to its template in this | ||
[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). | ||
## License | ||
@@ -133,0 +160,0 @@ |
@@ -217,3 +217,3 @@ /*! | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -220,0 +220,0 @@ callback(err, null, resp); |
@@ -227,3 +227,3 @@ /*! | ||
const zone = this.zone; | ||
super.delete(function(err, resp) { | ||
super.delete((err, resp) => { | ||
if (err) { | ||
@@ -289,3 +289,3 @@ callback(err, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -292,0 +292,0 @@ callback(err, null, resp); |
@@ -251,3 +251,3 @@ /*! | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -297,3 +297,3 @@ callback(err, null, null, resp); | ||
callback = callback || common.util.noop; | ||
super.delete(function(err, resp) { | ||
super.delete((err, resp) => { | ||
if (err) { | ||
@@ -300,0 +300,0 @@ callback(err, null, resp); |
@@ -219,3 +219,3 @@ /*! | ||
callback = callback || common.util.noop; | ||
super.delete(function(err, resp) { | ||
super.delete((err, resp) => { | ||
if (err) { | ||
@@ -277,3 +277,3 @@ callback(err, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -280,0 +280,0 @@ callback(err, null, resp); |
@@ -226,3 +226,3 @@ /*! | ||
callback = callback || common.util.noop; | ||
super.delete(function(err, resp) { | ||
super.delete((err, resp) => { | ||
if (err) { | ||
@@ -277,3 +277,3 @@ callback(err, null, resp); | ||
callback = callback || common.util.noop; | ||
super.setMetadata(metadata, function(err, resp) { | ||
super.setMetadata(metadata, (err, resp) => { | ||
if (err) { | ||
@@ -280,0 +280,0 @@ callback(err, null, resp); |
@@ -194,3 +194,3 @@ /*! | ||
callback = callback || common.util.noop; | ||
super.delete(function(err, resp) { | ||
super.delete((err, resp) => { | ||
if (err) { | ||
@@ -197,0 +197,0 @@ callback(err, null, resp); |
@@ -233,3 +233,3 @@ /*! | ||
json: { | ||
instances: arrify(vms).map(function(vm) { | ||
instances: arrify(vms).map(vm => { | ||
return { | ||
@@ -241,3 +241,3 @@ instance: vm.url, | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -286,3 +286,3 @@ callback(err, null, resp); | ||
callback = callback || common.util.noop; | ||
super.delete(function(err, resp) { | ||
super.delete((err, resp) => { | ||
if (err) { | ||
@@ -375,3 +375,3 @@ callback(err, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -387,3 +387,3 @@ callback(err, null, null, resp); | ||
} | ||
const vms = arrify(resp.items).map(function(vm) { | ||
const vms = arrify(resp.items).map(vm => { | ||
const vmInstance = self.zone.vm(vm.instance); | ||
@@ -441,3 +441,3 @@ vmInstance.metadata = vm; | ||
json: { | ||
instances: arrify(vms).map(function(vm) { | ||
instances: arrify(vms).map(vm => { | ||
return { | ||
@@ -449,3 +449,3 @@ instance: vm.url, | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -509,3 +509,3 @@ callback(err, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -531,3 +531,3 @@ callback(err, null, resp); | ||
static formatPorts_(ports) { | ||
return Object.keys(ports).map(function(port) { | ||
return Object.keys(ports).map(port => { | ||
return { | ||
@@ -534,0 +534,0 @@ name: port, |
@@ -451,3 +451,3 @@ /*! | ||
callback = callback || common.util.noop; | ||
super.delete(function(err, resp) { | ||
super.delete((err, resp) => { | ||
if (err) { | ||
@@ -454,0 +454,0 @@ callback(err, null, resp); |
@@ -248,3 +248,3 @@ /*! | ||
const self = this; | ||
this.getMetadata(function(err, metadata, apiResponse) { | ||
this.getMetadata((err, metadata, apiResponse) => { | ||
// Parsing the response body will automatically create an ApiError object if | ||
@@ -251,0 +251,0 @@ // the operation failed. |
@@ -224,3 +224,3 @@ /*! | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -307,3 +307,3 @@ callback(err, null, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -453,3 +453,3 @@ callback(err, null, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -465,3 +465,3 @@ callback(err, null, null, resp); | ||
} | ||
const addresses = (resp.items || []).map(function(address) { | ||
const addresses = (resp.items || []).map(address => { | ||
const addressInstance = self.address(address.name); | ||
@@ -544,3 +544,3 @@ addressInstance.metadata = address; | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -556,3 +556,3 @@ callback(err, null, null, resp); | ||
} | ||
const operations = (resp.items || []).map(function(operation) { | ||
const operations = (resp.items || []).map(operation => { | ||
const operationInstance = self.operation(operation.name); | ||
@@ -634,3 +634,3 @@ operationInstance.metadata = operation; | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -646,3 +646,3 @@ callback(err, null, null, resp); | ||
} | ||
const rules = (resp.items || []).map(function(rule) { | ||
const rules = (resp.items || []).map(rule => { | ||
const ruleInstance = self.rule(rule.name); | ||
@@ -725,3 +725,3 @@ ruleInstance.metadata = rule; | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -737,3 +737,3 @@ callback(err, null, null, resp); | ||
} | ||
const subnetworks = (resp.items || []).map(function(subnetwork) { | ||
const subnetworks = (resp.items || []).map(subnetwork => { | ||
const subnetworkInstance = self.subnetwork(subnetwork.name); | ||
@@ -740,0 +740,0 @@ subnetworkInstance.metadata = subnetwork; |
@@ -232,3 +232,3 @@ /*! | ||
const scope = this.scope; | ||
super.delete(function(err, resp) { | ||
super.delete((err, resp) => { | ||
if (err) { | ||
@@ -287,3 +287,3 @@ callback(err, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -290,0 +290,0 @@ callback(err, null, resp); |
@@ -230,3 +230,3 @@ /*! | ||
callback = callback || common.util.noop; | ||
common.ServiceObject.prototype.delete.call(this, function(err, resp) { | ||
common.ServiceObject.prototype.delete.call(this, (err, resp) => { | ||
if (err) { | ||
@@ -293,3 +293,3 @@ callback(err, null, resp); | ||
{ | ||
resourceBaseUrl: `https://www.googleapis.com/compute/v1`, | ||
resourceBaseUrl: 'https://www.googleapis.com/compute/v1', | ||
p: this.parent.projectId, | ||
@@ -309,3 +309,3 @@ z: group.zone.name || group.zone, | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -363,3 +363,3 @@ callback(err, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -366,0 +366,0 @@ callback(err, null, resp); |
@@ -217,3 +217,3 @@ /*! | ||
const compute = this.compute; | ||
common.ServiceObject.prototype.delete.call(this, function(err, resp) { | ||
common.ServiceObject.prototype.delete.call(this, (err, resp) => { | ||
if (err) { | ||
@@ -220,0 +220,0 @@ callback(err, null, resp); |
@@ -223,3 +223,3 @@ /*! | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -226,0 +226,0 @@ callback(err, null, resp); |
@@ -255,3 +255,3 @@ /*! | ||
{ | ||
resourceBaseUrl: `https://www.googleapis.com/compute/v1/projects`, | ||
resourceBaseUrl: 'https://www.googleapis.com/compute/v1/projects', | ||
project: zone.compute.projectId, | ||
@@ -427,3 +427,3 @@ zone: zone.name, | ||
} | ||
this.getMetadata(function(err, metadata) { | ||
this.getMetadata((err, metadata) => { | ||
if (err) { | ||
@@ -440,3 +440,3 @@ callback(new DetachDiskError(err.message)); | ||
let deviceName; | ||
const resourceBaseUrl = `https://www.googleapis.com/compute/v1/`; | ||
const resourceBaseUrl = 'https://www.googleapis.com/compute/v1/'; | ||
const disks = metadata.disks || []; | ||
@@ -511,3 +511,3 @@ // Try to find the deviceName by matching the source of the attached disks | ||
const request = common.ServiceObject.prototype.request; | ||
request.call(this, reqOpts, function(err, resp) { | ||
request.call(this, reqOpts, (err, resp) => { | ||
if (err) { | ||
@@ -550,3 +550,3 @@ callback(err, null, resp); | ||
getTags(callback) { | ||
this.getMetadata(function(err, metadata, apiResponse) { | ||
this.getMetadata((err, metadata, apiResponse) => { | ||
if (err) { | ||
@@ -685,3 +685,3 @@ callback(err, null, null, apiResponse); | ||
}, | ||
compute.execAfterOperation_(function(err, apiResponse) { | ||
compute.execAfterOperation_((err, apiResponse) => { | ||
if (err) { | ||
@@ -691,3 +691,3 @@ if (err.message === 'Instance is starting or running.') { | ||
self.stop( | ||
compute.execAfterOperation_(function(err, apiResponse) { | ||
compute.execAfterOperation_((err, apiResponse) => { | ||
if (err) { | ||
@@ -758,3 +758,3 @@ callback(err, apiResponse); | ||
callback = callback || common.util.noop; | ||
this.getMetadata(function(err, currentMetadata, apiResponse) { | ||
this.getMetadata((err, currentMetadata, apiResponse) => { | ||
if (err) { | ||
@@ -1028,5 +1028,5 @@ callback(err, null, apiResponse); | ||
} | ||
this.getMetadata(function(err, metadata) { | ||
this.getMetadata((err, metadata) => { | ||
const now = new Date() / 1000; | ||
const waitersToRemove = self.waiters.filter(function(waiter) { | ||
const waitersToRemove = self.waiters.filter(waiter => { | ||
if (err) { | ||
@@ -1051,3 +1051,3 @@ waiter.callback(err); | ||
}); | ||
waitersToRemove.forEach(function(waiter) { | ||
waitersToRemove.forEach(waiter => { | ||
self.waiters.splice(self.waiters.indexOf(waiter), 1); | ||
@@ -1081,3 +1081,3 @@ }); | ||
const request = common.ServiceObject.prototype.request; | ||
request.call(this, reqOpts, function(err, resp) { | ||
request.call(this, reqOpts, (err, resp) => { | ||
if (err) { | ||
@@ -1084,0 +1084,0 @@ callback(err, null, resp); |
@@ -292,3 +292,3 @@ /*! | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -374,3 +374,3 @@ callback(err, null, null, resp); | ||
if (body.os) { | ||
this.gceImages.getLatest(body.os, function(err, image) { | ||
this.gceImages.getLatest(body.os, (err, image) => { | ||
if (err) { | ||
@@ -393,3 +393,3 @@ callback(err); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -467,3 +467,3 @@ callback(err, null, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -639,3 +639,3 @@ callback(err, null, null, resp); | ||
// We have to make sure the firewall rules exist to allow HTTP/S traffic. | ||
async.parallel(createFirewallMethods, function(err) { | ||
async.parallel(createFirewallMethods, err => { | ||
if (err) { | ||
@@ -650,3 +650,3 @@ callback(err); | ||
if (body.os) { | ||
this.gceImages.getLatest(body.os, function(err, image) { | ||
this.gceImages.getLatest(body.os, (err, image) => { | ||
if (err) { | ||
@@ -675,3 +675,3 @@ callback(err); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -776,3 +776,3 @@ callback(err, null, null, resp); | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -788,3 +788,3 @@ callback(err, null, null, resp); | ||
} | ||
const autoscalers = arrify(resp.items).map(function(autoscaler) { | ||
const autoscalers = arrify(resp.items).map(autoscaler => { | ||
const autoscalerInstance = self.autoscaler(autoscaler.name); | ||
@@ -866,3 +866,3 @@ autoscalerInstance.metadata = autoscaler; | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -878,3 +878,3 @@ callback(err, null, null, resp); | ||
} | ||
const disks = (resp.items || []).map(function(disk) { | ||
const disks = (resp.items || []).map(disk => { | ||
const diskInstance = self.disk(disk.name); | ||
@@ -958,3 +958,3 @@ diskInstance.metadata = disk; | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -970,3 +970,3 @@ callback(err, null, null, resp); | ||
} | ||
const instanceGroups = (resp.items || []).map(function(instanceGroup) { | ||
const instanceGroups = (resp.items || []).map(instanceGroup => { | ||
const instanceGroupInstance = self.instanceGroup(instanceGroup.name); | ||
@@ -1050,3 +1050,3 @@ instanceGroupInstance.metadata = instanceGroup; | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -1062,11 +1062,11 @@ callback(err, null, null, resp); | ||
} | ||
const instanceGroupManagers = (resp.items || []).map(function( | ||
instanceGroupManager | ||
) { | ||
const instanceGroupManagerInstance = self.instanceGroupManager( | ||
instanceGroupManager.name | ||
); | ||
instanceGroupManagerInstance.metadata = instanceGroupManager; | ||
return instanceGroupManagerInstance; | ||
}); | ||
const instanceGroupManagers = (resp.items || []).map( | ||
instanceGroupManager => { | ||
const instanceGroupManagerInstance = self.instanceGroupManager( | ||
instanceGroupManager.name | ||
); | ||
instanceGroupManagerInstance.metadata = instanceGroupManager; | ||
return instanceGroupManagerInstance; | ||
} | ||
); | ||
callback(null, instanceGroupManagers, nextQuery, resp); | ||
@@ -1207,3 +1207,3 @@ } | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -1219,3 +1219,3 @@ callback(err, null, null, resp); | ||
} | ||
const operations = (resp.items || []).map(function(operation) { | ||
const operations = (resp.items || []).map(operation => { | ||
const operationInstance = self.operation(operation.name); | ||
@@ -1295,3 +1295,3 @@ operationInstance.metadata = operation; | ||
}, | ||
function(err, resp) { | ||
(err, resp) => { | ||
if (err) { | ||
@@ -1307,3 +1307,3 @@ callback(err, null, null, resp); | ||
} | ||
const vms = (resp.items || []).map(function(instance) { | ||
const vms = (resp.items || []).map(instance => { | ||
const vmInstance = self.vm(instance.name); | ||
@@ -1427,3 +1427,3 @@ vmInstance.metadata = instance; | ||
}, | ||
function(err) { | ||
err => { | ||
// If it already exists, we're all good. | ||
@@ -1453,3 +1453,3 @@ callback(err && err.code !== 409 ? err : null); | ||
}, | ||
function(err) { | ||
err => { | ||
// If it already exists, we're all good. | ||
@@ -1456,0 +1456,0 @@ callback(err && err.code !== 409 ? err : null); |
Sorry, the diff of this file is too big to display
434066
13
169
11573
+ Added@google-cloud/common@3.10.0(transitive)
+ Added@google-cloud/paginator@3.0.7(transitive)
+ Added@google-cloud/projectify@2.1.1(transitive)
+ Added@google-cloud/promisify@2.0.4(transitive)
+ Added@tootallnate/once@2.0.0(transitive)
+ Addedduplexify@4.1.3(transitive)
+ Addedgaxios@4.3.3(transitive)
+ Addedgcp-metadata@4.3.1(transitive)
+ Addedgoogle-auth-library@7.14.1(transitive)
+ Addedgoogle-p12-pem@3.1.4(transitive)
+ Addedgtoken@5.3.2(transitive)
+ Addedhttp-proxy-agent@5.0.0(transitive)
+ Addedjson-bigint@1.0.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addednode-forge@1.3.1(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedteeny-request@7.2.0(transitive)
+ Addeduuid@8.3.2(transitive)
+ Addedyallist@4.0.0(transitive)
- Removed@google-cloud/common@2.4.0(transitive)
- Removed@google-cloud/paginator@2.0.3(transitive)
- Removed@google-cloud/projectify@1.0.4(transitive)
- Removed@google-cloud/promisify@1.0.4(transitive)
- Removed@tootallnate/once@1.1.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedduplexify@3.7.1(transitive)
- Removedhttp-proxy-agent@4.0.1(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedteeny-request@6.0.3(transitive)
- Removeduuid@7.0.3(transitive)
Updated@google-cloud/common@^3.0.0