0.0.20240512 • Published 5 days ago

@maxim_mazurok/gapi.client.bigquerydatatransfer-v1 v0.0.20240512

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

TypeScript typings for BigQuery Data Transfer API v1

Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis. For detailed description please check documentation.

Installing

Install typings for BigQuery Data Transfer API:

npm install @types/gapi.client.bigquerydatatransfer-v1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load(
  'https://bigquerydatatransfer.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.bigquerydatatransfer
  }
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('bigquerydatatransfer', 'v1', () => {
  // now we can use:
  // gapi.client.bigquerydatatransfer
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [
    // View and manage your data in Google BigQuery and see the email address for your Google Account
    'https://www.googleapis.com/auth/bigquery',

    // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
    'https://www.googleapis.com/auth/cloud-platform',

    // View your data across Google Cloud services and see the email address of your Google Account
    'https://www.googleapis.com/auth/cloud-platform.read-only',
  ],
  immediate = true;
// ...

gapi.auth.authorize(
  {client_id: client_id, scope: scope, immediate: immediate},
  authResult => {
    if (authResult && !authResult.error) {
      /* handle successful authorization */
    } else {
      /* handle authorization error */
    }
  }
);

After that you can use BigQuery Data Transfer API resources:

/*
Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
*/
await gapi.client.bigquerydatatransfer.projects.enrollDataSources({
  name: 'name',
});
0.0.20240512

5 days ago

0.0.20240504

14 days ago

0.0.20240427

21 days ago

0.0.20240420

28 days ago

0.0.20240416

1 month ago

0.0.20240323

2 months ago

0.0.20240317

2 months ago

0.0.20240312

2 months ago

0.0.20240306

2 months ago

0.0.20240227

3 months ago

0.0.20240218

3 months ago

0.0.20240212

3 months ago

0.0.20240202

3 months ago

0.0.20240130

4 months ago

0.0.20240120

4 months ago

0.0.20240113

4 months ago

0.0.20240107

4 months ago

0.0.20240103

5 months ago

0.0.20231215

5 months ago

0.0.20231210

5 months ago

0.0.20231203

6 months ago

0.0.20231129

6 months ago

0.0.20231029

7 months ago

0.0.20231105

7 months ago

0.0.20230812

9 months ago

0.0.20230728

10 months ago

0.0.20230722

10 months ago

0.0.20231017

7 months ago

0.0.20230924

8 months ago

0.0.20230804

10 months ago

0.0.20231021

7 months ago

0.0.20230916

8 months ago

0.0.20231007

8 months ago

0.0.20230910

8 months ago

0.0.20230715

10 months ago

0.0.20231015

7 months ago

0.0.20230708

11 months ago

0.0.20230827

9 months ago

0.0.20230905

9 months ago

0.0.20230701

11 months ago

0.0.20231001

8 months ago

0.0.20230625

11 months ago

0.0.20230619

11 months ago

0.0.20230612

11 months ago

0.0.20230513

1 year ago

0.0.20230517

1 year ago

0.0.20230524

12 months ago

0.0.20230525

12 months ago

0.0.20230506

1 year ago

0.0.20230606

12 months ago

0.0.20230529

12 months ago

0.0.20230414

1 year ago

0.0.20230301

1 year ago

0.0.20230320

1 year ago

0.0.20230326

1 year ago

0.0.20230228

1 year ago

0.0.20230423

1 year ago

0.0.20230407

1 year ago

0.0.20230308

1 year ago

0.0.20230214

1 year ago

0.0.20230221

1 year ago

0.0.20230128

1 year ago

0.0.20230208

1 year ago

0.0.20230115

1 year ago

0.0.20221112

2 years ago

0.0.20221110

2 years ago

0.0.20221209

1 year ago

0.0.20230102

1 year ago

0.0.20221108

2 years ago

0.0.20230122

1 year ago

0.0.20221205

1 year ago

0.0.20221128

1 year ago

0.0.20230107

1 year ago

0.0.20221102

2 years ago

0.0.20221217

1 year ago

0.0.20221014

2 years ago

0.0.20221001

2 years ago

0.0.20221021

2 years ago

0.0.20220927

2 years ago

0.0.20220819

2 years ago

0.0.20220910

2 years ago

0.0.20220913

2 years ago

0.0.20220903

2 years ago

0.0.20220826

2 years ago

0.0.20220813

2 years ago

0.0.20220807

2 years ago

0.0.20220730

2 years ago