ballerinax/googleapis.bigquery.datatransfer Ballerina library

1.5.2

Overview

The Google BigQuery Data Transfer API v1 connector(https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest) OpenAPI specification. The BigQuery Data Transfer API provides access schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis..

Key Features

  • Programmatic access to create and manage resources via REST API
  • Manage user accounts and profiles
  • Secure authentication with API key or OAuth support

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the Google BigQuery connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/googleapis.bigquery.datatransfer module into the Ballerina project.

Copy
import ballerinax/googleapis.bigquery.datatransfer;

Step 2: Create a new connector instance

Create a datatransfer:ClientConfig with the OAuth2 tokens obtained, and initialize the connector with it.

Copy
datatransfer:ClientConfig clientConfig = {auth : {token: "<Your access token>"}};
datatransfer:Client baseClient = check new Client(clientConfig);

Step 3: Invoke connector operation

  1. Now you can invoke the connector operations as follows,

    List projects

    Copy
    public function main() returns error? {
        datatransfer:TransferRun runInfo = check baseClient->getTransferRun(name);
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/googleapis.bigquery.datatransfer;Copy

Other versions

See more...

Metadata

Released date: 3 days ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 36

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

IT Operations/Cloud Services

Cost/Freemium

Vendor/Google

Area/Cloud & Infrastructure


Contributors