module
@google-cloud/bigquery-data-transfer
Source: index.
The @google-cloud/bigquery-data-transfer package has the following named exports:
DataTransferServiceClient- Reference to v1.DataTransferServiceClientv1- This is used for selecting or pinning a particular backend service version. It exports:DataTransferServiceClient- Reference to v1.DataTransferServiceClient
Examples
Install the client library with <a href="https://www.npmjs.com/">npm</a>:
npm install --save @google-cloud/bigquery-data-transfer
Import the client library:
const bigquery-data-transfer = require('@google-cloud/bigquery-data-transfer');
Create a client that uses <a href="https://goo.gl/64dyYX">Application Default Credentials (ADC)</a>:
const client = new bigquery-data-transfer.DataTransferServiceClient();
Create a client with <a href="https://goo.gl/RXp6VL">explicit credentials</a>:
const client = new bigquery-data-transfer.DataTransferServiceClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Property
Exports
require("@google-cloud/bigquery-data-transfer") unknown
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
DataTransferServiceClient |
|
|
Reference to v1.DataTransferServiceClient |
Property
static
v1 object
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
DataTransferServiceClient |
constructor |
|
Reference to v1.DataTransferServiceClient |