node-samples
node-samples copied to clipboard
fix: use `requestBody` instead of `resource`
The resource key was changed to requestBody in Google APIs v40 (https://github.com/googleapis/google-api-nodejs-client/pull/1149)
Though using resource still works, the TypeScript definitions in https://github.com/googleapis/google-api-nodejs-client only include requestBody, so using resource causes the TypeScript compiler to show an error.
Closes #77
@jpoehnelt Can you please review this?