tasks

The tasks package has the following named exports:

Source:
Examples

Install the client library with npm:

npm install --save tasks

Import the client library:

const tasks = require('@google-cloud/tasks');

Create a client that uses Application Default Credentials (ADC):

const client = new tasks.CloudTasksClient();

Create a client with explicit credentials:

const client = new tasks.CloudTasksClient({
  projectId: 'your-project-id',
  keyFilename: '/path/to/keyfile.json',
});

Members

(static) v2 :object

Properties:
Name Type Description
CloudTasksClient constructor

Reference to v2.CloudTasksClient

Source:

(static) v2beta2 :object

Properties:
Name Type Description
CloudTasksClient constructor

Reference to v2beta2.CloudTasksClient

Source:

(static) v2beta3 :object

Properties:
Name Type Description
CloudTasksClient constructor

Reference to v2beta2.CloudTasksClient

Source: