ballerinax/googleapis.bigquery.datatransfer Ballerina library

1.5.1

Overview

This is a generated connector for Google BigQuery Data Transfer API v1 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..

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

Metadata

Released date: over 1 year ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 2

Current verison: 1


Weekly downloads


Source repository


Keywords

IT Operations/Cloud Services

Cost/Freemium

Vendor/Google


Contributors

Other versions

See more...