0.0.20241022 • Published 8 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months 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.20241022

8 months ago

0.0.20241015

9 months ago

0.0.20240929

9 months ago

0.0.20240922

9 months ago

0.0.20241005

9 months ago

0.0.20240914

10 months ago

0.0.20240908

10 months ago

0.0.20240825

10 months ago

0.0.20240831

10 months ago

0.0.20240608

1 year ago

0.0.20240616

1 year ago

0.0.20240731

11 months ago

0.0.20240630

1 year ago

0.0.20240623

1 year ago

0.0.20240519

1 year ago

0.0.20240809

11 months ago

0.0.20240806

11 months ago

0.0.20240527

1 year ago

0.0.20240817

11 months ago

0.0.20240706

12 months ago

0.0.20240719

12 months ago

0.0.20240713

12 months ago

0.0.20240512

1 year ago

0.0.20240504

1 year ago

0.0.20240427

1 year ago

0.0.20240420

1 year ago

0.0.20240416

1 year ago

0.0.20240323

1 year ago

0.0.20240317

1 year ago

0.0.20240312

1 year ago

0.0.20240306

1 year ago

0.0.20240227

1 year ago

0.0.20240218

1 year ago

0.0.20240212

1 year ago

0.0.20240202

1 year ago

0.0.20240130

1 year ago

0.0.20240120

1 year ago

0.0.20240113

1 year ago

0.0.20240107

1 year ago

0.0.20240103

1 year ago

0.0.20231215

2 years ago

0.0.20231210

2 years ago

0.0.20231203

2 years ago

0.0.20231129

2 years ago

0.0.20231029

2 years ago

0.0.20231105

2 years ago

0.0.20230812

2 years ago

0.0.20230728

2 years ago

0.0.20230722

2 years ago

0.0.20231017

2 years ago

0.0.20230924

2 years ago

0.0.20230804

2 years ago

0.0.20231021

2 years ago

0.0.20230916

2 years ago

0.0.20231007

2 years ago

0.0.20230910

2 years ago

0.0.20230715

2 years ago

0.0.20231015

2 years ago

0.0.20230708

2 years ago

0.0.20230827

2 years ago

0.0.20230905

2 years ago

0.0.20230701

2 years ago

0.0.20231001

2 years ago

0.0.20230625

2 years ago

0.0.20230619

2 years ago

0.0.20230612

2 years ago

0.0.20230513

2 years ago

0.0.20230517

2 years ago

0.0.20230524

2 years ago

0.0.20230525

2 years ago

0.0.20230506

2 years ago

0.0.20230606

2 years ago

0.0.20230529

2 years ago

0.0.20230414

2 years ago

0.0.20230301

2 years ago

0.0.20230320

2 years ago

0.0.20230326

2 years ago

0.0.20230228

2 years ago

0.0.20230423

2 years ago

0.0.20230407

2 years ago

0.0.20230308

2 years ago

0.0.20230214

2 years ago

0.0.20230221

2 years ago

0.0.20230128

2 years ago

0.0.20230208

2 years ago

0.0.20230115

2 years ago

0.0.20221112

3 years ago

0.0.20221110

3 years ago

0.0.20221209

3 years ago

0.0.20230102

2 years ago

0.0.20221108

3 years ago

0.0.20230122

2 years ago

0.0.20221205

3 years ago

0.0.20221128

3 years ago

0.0.20230107

2 years ago

0.0.20221102

3 years ago

0.0.20221217

3 years ago

0.0.20221014

3 years ago

0.0.20221001

3 years ago

0.0.20221021

3 years ago

0.0.20220927

3 years ago

0.0.20220819

3 years ago

0.0.20220910

3 years ago

0.0.20220913

3 years ago

0.0.20220903

3 years ago

0.0.20220826

3 years ago

0.0.20220813

3 years ago

0.0.20220807

3 years ago

0.0.20220730

3 years ago