module
tasks
Source: index.
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 <a href="https://www.npmjs.com/">npm</a>:
npm install --save tasks
Import the client library:
const tasks = require('@google-cloud/tasks');
Create a client that uses <a href="https://goo.gl/64dyYX">Application Default Credentials (ADC)</a>:
const client = new tasks.CloudTasksClient();
Create a client with <a href="https://goo.gl/RXp6VL">explicit credentials</a>:
const client = new tasks.CloudTasksClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Exports
require("tasks") unknown
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
CloudTasksClient |
|
|
Reference to v2beta3.CloudTasksClient |
Properties
static
v2 object
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
CloudTasksClient |
constructor |
|
Reference to v2.CloudTasksClient |
static
v2beta2 object
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
CloudTasksClient |
constructor |
|
Reference to v2beta2.CloudTasksClient |
static
v2beta3 object
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
CloudTasksClient |
constructor |
|
Reference to v2beta2.CloudTasksClient |