The tasks package has the following named exports:
CloudTasksClient- Reference to v2beta2.CloudTasksClientv2beta2- This is used for selecting or pinning a particular backend service version. It exports:CloudTasksClient- Reference to v2beta2.CloudTasksClient
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 |
(static) v2beta2 :object
Properties:
| Name | Type | Description |
|---|---|---|
CloudTasksClient |
constructor |
Reference to v2beta2.CloudTasksClient |
(static) v2beta3 :object
Properties:
| Name | Type | Description |
|---|---|---|
CloudTasksClient |
constructor |
Reference to v2beta2.CloudTasksClient |