Socket
Socket
Sign inDemoInstall

@google-cloud/vision

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/vision - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

7

CHANGELOG.md

@@ -7,2 +7,9 @@ # Changelog

## [1.1.0](https://www.github.com/googleapis/nodejs-vision/compare/v1.0.0...v1.1.0) (2019-06-05)
### Features
* support apiEndpoint override in client constructor ([#393](https://www.github.com/googleapis/nodejs-vision/issues/393)) ([7777275](https://www.github.com/googleapis/nodejs-vision/commit/7777275))
## [1.0.0](https://www.github.com/googleapis/nodejs-vision/compare/v0.25.0...v1.0.0) (2019-05-13)

@@ -9,0 +16,0 @@

10

package.json
{
"name": "@google-cloud/vision",
"description": "Google Cloud Vision API client for Node.js",
"version": "1.0.0",
"version": "1.1.0",
"license": "Apache-2.0",

@@ -32,5 +32,3 @@ "author": "Google Inc",

"scripts": {
"cover": "nyc --reporter=lcov mocha test/*.js && nyc report",
"docs": "jsdoc -c .jsdoc.js",
"generate-scaffolding": "repo-tools generate all && repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json",
"lint": "eslint '**/*.js'",

@@ -40,3 +38,3 @@ "samples-test": "cd samples/ && npm link ../ && npm test && cd ../",

"test-no-cover": "mocha test/*.js",
"test": "npm run cover",
"test": "nyc mocha",
"fix": "eslint --fix '**/*.js'",

@@ -50,7 +48,5 @@ "docs-test": "linkinator docs -r --skip www.googleapis.com",

"is": "^3.2.1",
"lodash.merge": "^4.6.1",
"protobufjs": "^6.8.6"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "^3.0.0",
"@google-cloud/storage": "^2.0.0",

@@ -62,3 +58,3 @@ "codecov": "^3.0.2",

"eslint-plugin-prettier": "^3.0.0",
"jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git",
"jsdoc-baseline": "^0.1.0",
"intelli-espower-loader": "^1.0.1",

@@ -65,0 +61,0 @@ "jsdoc": "^3.6.2",

[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
[//]: # "To regenerate it, use `npm run generate-scaffolding`."
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

@@ -7,10 +7,28 @@

[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style&#x3D;flat)](https://cloud.google.com/terms/launch-stages)
[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/vision.svg)](https://www.npmjs.org/package/@google-cloud/vision)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-vision/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-vision)
The [Cloud Vision API](https://cloud.google.com/vision/docs) allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.
* [Using the client library](#using-the-client-library)
Google Cloud Vision API client for Node.js
* [Google Cloud Vision API Node.js Client API Reference][client-docs]
* [Google Cloud Vision API Documentation][product-docs]
* [github.com/googleapis/nodejs-vision](https://github.com/googleapis/nodejs-vision)
Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in [Client Libraries Explained][explained].
[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
**Table of contents:**
* [Quickstart](#quickstart)
* [Before you begin](#before-you-begin)
* [Installing the client library](#installing-the-client-library)
* [Using the client library](#using-the-client-library)
* [Samples](#samples)

@@ -21,19 +39,21 @@ * [Versioning](#versioning)

## Using the client library
## Quickstart
### Before you begin
1. [Select or create a Cloud Platform project][projects].
1. [Enable billing for your project][billing].
1. [Enable the Google Cloud Vision API API][enable_api].
1. [Set up authentication with a service account][auth] so you can access the
API from your local workstation.
1. Install the client library:
### Installing the client library
npm install --save @google-cloud/vision
```bash
npm install @google-cloud/vision
```
1. Try an example:
### Using the client library
```javascript

@@ -53,4 +73,7 @@ async function quickstart() {

}
```
## Samples

@@ -63,6 +86,10 @@

| --------------------------- | --------------------------------- | ------ |
| Detection samples | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.js,samples/README.md) |
| Detection samples for Beta API | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.v1p1beta1.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.v1p1beta1.js,samples/README.md) |
| Detect | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.js,samples/README.md) |
| Face Detection | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/faceDetection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/faceDetection.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Text Detection | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/textDetection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/textDetection.js,samples/README.md) |
The [Vision API Node.js Client API Reference][client-docs] documentation
The [Google Cloud Vision API Node.js Client API Reference][client-docs] documentation
also contains samples.

@@ -74,2 +101,4 @@

This library is considered to be in **beta**. This means it is expected to be

@@ -80,2 +109,5 @@ mostly stable while we work toward a general availability release; however,

More Information: [Google Cloud Platform Launch Stages][launch_stages]

@@ -95,15 +127,4 @@

## What's Next
* [Vision API Documentation][product-docs]
* [Vision API Node.js Client API Reference][client-docs]
* [github.com/googleapis/nodejs-vision](https://github.com/googleapis/nodejs-vision)
Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in [Client Libraries Explained][explained].
[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
[client-docs]: https://cloud.google.com/nodejs/docs/reference/vision/latest/
[product-docs]: https://cloud.google.com/vision/docs
[product-docs]: https://cloud.google.com/vision
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png

@@ -113,2 +134,2 @@ [projects]: https://console.cloud.google.com/project

[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=vision.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/getting-started
[auth]: https://cloud.google.com/docs/authentication/getting-started

@@ -39,3 +39,7 @@ // Copyright 2019 Google LLC

* The category for the product identified by the reference image. This should
* be either "homegoods", "apparel", or "toys".
* be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
* "homegoods", "apparel", and "toys" are still supported but will be
* deprecated. For new products, please use "homegoods-v2", "apparel-v2", or
* "toys-v2" for better product search accuracy. It is recommended to migrate
* existing products to these categories as well.
*

@@ -42,0 +46,0 @@ * This field is immutable.

@@ -36,4 +36,8 @@ // Copyright 2019 Google LLC

* The list of product categories to search in. Currently, we only consider
* the first category, and either "homegoods", "apparel", or "toys" should be
* specified.
* the first category, and either "homegoods-v2", "apparel-v2", or "toys-v2"
* should be specified. The legacy categories "homegoods", "apparel", and
* "toys" are still supported but will be deprecated. For new products, please
* use "homegoods-v2", "apparel-v2", or "toys-v2" for better product search
* accuracy. It is recommended to migrate existing products to these
* categories as well.
*

@@ -40,0 +44,0 @@ * @property {string} filter

@@ -19,3 +19,2 @@ // Copyright 2019 Google LLC

const gax = require('google-gax');
const merge = require('lodash.merge');
const path = require('path');

@@ -63,4 +62,8 @@ const protobuf = require('protobufjs');

constructor(opts) {
opts = opts || {};
this._descriptors = {};
const servicePath =
opts.servicePath || opts.apiEndpoint || this.constructor.servicePath;
// Ensure that options include the service address and port.

@@ -71,3 +74,3 @@ opts = Object.assign(

port: this.constructor.port,
servicePath: this.constructor.servicePath,
servicePath,
},

@@ -97,8 +100,5 @@ opts

// Load the applicable protos.
const protos = merge(
{},
gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
'google/cloud/vision/v1/image_annotator.proto'
)
const protos = gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
['google/cloud/vision/v1/image_annotator.proto']
);

@@ -214,2 +214,10 @@ let protoFilesRoot = new gax.GoogleProtoFilesRoot();

/**
* The DNS address for this API service - same as servicePath(),
* exists for compatibility reasons.
*/
static get apiEndpoint() {
return 'vision.googleapis.com';
}
/**
* The port for this API service.

@@ -256,3 +264,3 @@ */

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]

@@ -312,3 +320,3 @@ * The function which will be called with the result of the API call.

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]

@@ -373,9 +381,9 @@ * The function which will be called with the result of the API call.

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* The promise has a method named "cancel" which cancels the ongoing API call.

@@ -490,9 +498,9 @@ *

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* The promise has a method named "cancel" which cancels the ongoing API call.

@@ -499,0 +507,0 @@ *

@@ -19,3 +19,2 @@ // Copyright 2019 Google LLC

const gax = require('google-gax');
const merge = require('lodash.merge');
const path = require('path');

@@ -62,4 +61,8 @@

constructor(opts) {
opts = opts || {};
this._descriptors = {};
const servicePath =
opts.servicePath || opts.apiEndpoint || this.constructor.servicePath;
// Ensure that options include the service address and port.

@@ -70,3 +73,3 @@ opts = Object.assign(

port: this.constructor.port,
servicePath: this.constructor.servicePath,
servicePath,
},

@@ -96,8 +99,5 @@ opts

// Load the applicable protos.
const protos = merge(
{},
gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
'google/cloud/vision/v1p1beta1/image_annotator.proto'
)
const protos = gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
['google/cloud/vision/v1p1beta1/image_annotator.proto']
);

@@ -155,2 +155,10 @@

/**
* The DNS address for this API service - same as servicePath(),
* exists for compatibility reasons.
*/
static get apiEndpoint() {
return 'vision.googleapis.com';
}
/**
* The port for this API service.

@@ -197,3 +205,3 @@ */

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]

@@ -200,0 +208,0 @@ * The function which will be called with the result of the API call.

@@ -19,3 +19,2 @@ // Copyright 2019 Google LLC

const gax = require('google-gax');
const merge = require('lodash.merge');
const path = require('path');

@@ -63,4 +62,8 @@ const protobuf = require('protobufjs');

constructor(opts) {
opts = opts || {};
this._descriptors = {};
const servicePath =
opts.servicePath || opts.apiEndpoint || this.constructor.servicePath;
// Ensure that options include the service address and port.

@@ -71,3 +74,3 @@ opts = Object.assign(

port: this.constructor.port,
servicePath: this.constructor.servicePath,
servicePath,
},

@@ -97,8 +100,5 @@ opts

// Load the applicable protos.
const protos = merge(
{},
gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
'google/cloud/vision/v1p2beta1/image_annotator.proto'
)
const protos = gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
['google/cloud/vision/v1p2beta1/image_annotator.proto']
);

@@ -197,2 +197,10 @@ let protoFilesRoot = new gax.GoogleProtoFilesRoot();

/**
* The DNS address for this API service - same as servicePath(),
* exists for compatibility reasons.
*/
static get apiEndpoint() {
return 'vision.googleapis.com';
}
/**
* The port for this API service.

@@ -239,3 +247,3 @@ */

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]

@@ -293,9 +301,9 @@ * The function which will be called with the result of the API call.

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* The promise has a method named "cancel" which cancels the ongoing API call.

@@ -302,0 +310,0 @@ *

@@ -19,3 +19,2 @@ // Copyright 2019 Google LLC

const gax = require('google-gax');
const merge = require('lodash.merge');
const path = require('path');

@@ -63,4 +62,8 @@ const protobuf = require('protobufjs');

constructor(opts) {
opts = opts || {};
this._descriptors = {};
const servicePath =
opts.servicePath || opts.apiEndpoint || this.constructor.servicePath;
// Ensure that options include the service address and port.

@@ -71,3 +74,3 @@ opts = Object.assign(

port: this.constructor.port,
servicePath: this.constructor.servicePath,
servicePath,
},

@@ -97,8 +100,5 @@ opts

// Load the applicable protos.
const protos = merge(
{},
gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
'google/cloud/vision/v1p3beta1/image_annotator.proto'
)
const protos = gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
['google/cloud/vision/v1p3beta1/image_annotator.proto']
);

@@ -197,2 +197,10 @@ let protoFilesRoot = new gax.GoogleProtoFilesRoot();

/**
* The DNS address for this API service - same as servicePath(),
* exists for compatibility reasons.
*/
static get apiEndpoint() {
return 'vision.googleapis.com';
}
/**
* The port for this API service.

@@ -239,3 +247,3 @@ */

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]

@@ -293,9 +301,9 @@ * The function which will be called with the result of the API call.

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* The promise has a method named "cancel" which cancels the ongoing API call.

@@ -302,0 +310,0 @@ *

@@ -39,3 +39,8 @@ // Copyright 2019 Google LLC

* The category for the product identified by the reference image. This should
* be either "homegoods", "apparel", or "toys".
* be either "homegoods-v2", "apparel-v2", "toys-v2", or "packagedgoods-v1".
* The legacy categories "homegoods", "apparel", and "toys" are still
* supported but will be deprecated. For new products, please use
* "homegoods-v2", "apparel-v2", or "toys-v2" for better product search
* accuracy. It is recommended to migrate existing products to these
* categories as well.
*

@@ -42,0 +47,0 @@ * This field is immutable.

@@ -37,4 +37,8 @@ // Copyright 2019 Google LLC

* The list of product categories to search in. Currently, we only consider
* the first category, and either "homegoods", "apparel", or "toys" should be
* specified.
* the first category, and either "homegoods-v2", "apparel-v2", "toys-v2", or
* "packagedgoods-v1" should be specified. The legacy categories "homegoods",
* "apparel", and "toys" are still supported but will be deprecated. For new
* products, please use "homegoods-v2", "apparel-v2", or "toys-v2" for better
* product search accuracy. It is recommended to migrate existing products to
* these categories as well.
*

@@ -41,0 +45,0 @@ * @property {string} filter

@@ -19,3 +19,2 @@ // Copyright 2019 Google LLC

const gax = require('google-gax');
const merge = require('lodash.merge');
const path = require('path');

@@ -63,4 +62,8 @@ const protobuf = require('protobufjs');

constructor(opts) {
opts = opts || {};
this._descriptors = {};
const servicePath =
opts.servicePath || opts.apiEndpoint || this.constructor.servicePath;
// Ensure that options include the service address and port.

@@ -71,3 +74,3 @@ opts = Object.assign(

port: this.constructor.port,
servicePath: this.constructor.servicePath,
servicePath,
},

@@ -97,8 +100,5 @@ opts

// Load the applicable protos.
const protos = merge(
{},
gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
'google/cloud/vision/v1p4beta1/image_annotator.proto'
)
const protos = gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
['google/cloud/vision/v1p4beta1/image_annotator.proto']
);

@@ -214,2 +214,10 @@ let protoFilesRoot = new gax.GoogleProtoFilesRoot();

/**
* The DNS address for this API service - same as servicePath(),
* exists for compatibility reasons.
*/
static get apiEndpoint() {
return 'vision.googleapis.com';
}
/**
* The port for this API service.

@@ -256,3 +264,3 @@ */

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]

@@ -311,3 +319,3 @@ * The function which will be called with the result of the API call.

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]

@@ -372,9 +380,9 @@ * The function which will be called with the result of the API call.

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* The promise has a method named "cancel" which cancels the ongoing API call.

@@ -489,9 +497,9 @@ *

* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object.
* The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object.
* The promise has a method named "cancel" which cancels the ongoing API call.

@@ -498,0 +506,0 @@ *

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc