Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@google-cloud/bigquery-connection

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/bigquery-connection - npm Package Compare versions

Comparing version
4.1.0
to
4.1.1
+1
-1
package.json
{
"name": "@google-cloud/bigquery-connection",
"version": "4.1.0",
"version": "4.1.1",
"description": "BigQuery Connection client for Node.js",

@@ -5,0 +5,0 @@ "repository": {

+44
-91
[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
[//]: # "To regenerate it, use `python -m synthtool`."
[//]: # "The comments you see below are used to generate those parts of the template in later states."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
# [Google BigQuery Connection: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-connection)
# [BigQuery Connection API: Nodejs Client][homepage]
[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
unless absolutely necessary (e.g. because of critical security issues) or with
an extensive deprecation period. Issues and requests against **stable** libraries
are addressed with the highest priority
[![npm version](https://img.shields.io/npm/v/@google-cloud/bigquery-connection.svg)](https://www.npmjs.org/package/@google-cloud/bigquery-connection)
BigQuery Connection API client for Node.js
[//]: # "partials.introduction"
A comprehensive list of changes in each version may be found in
[the CHANGELOG][homepage_changelog].
BigQuery Connection client for Node.js
* [BigQuery Connection API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/connection/latest)
A comprehensive list of changes in each version may be found in
[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-connection/CHANGELOG.md).
* [Google BigQuery Connection Node.js Client API Reference][client-docs]
* [Google BigQuery Connection Documentation][product-docs]
* [github.com/googleapis/google-cloud-node/packages/google-cloud-bigquery-connection](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-connection)
Read more about the client libraries for Cloud APIs, including the older

@@ -30,8 +31,6 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].

* [Quickstart](#quickstart)
* [Before you begin](#before-you-begin)
* [Installing the client library](#installing-the-client-library)
* [Using the client library](#using-the-client-library)
* [Samples](#samples)
* [Versioning](#versioning)

@@ -42,3 +41,2 @@ * [Contributing](#contributing)

## Quickstart
### Before you begin

@@ -48,6 +46,5 @@

1. [Enable billing for your project][billing].
1. [Enable the Google BigQuery Connection API][enable_api].
1. [Enable the BigQuery Connection API API][enable_api].
1. [Set up authentication][auth] so you can access the
API from your local workstation.
### Installing the client library

@@ -59,62 +56,31 @@

[//]: # "partials.body"
### Using the client library
```javascript
// Imports the Google Cloud client library
const {
ConnectionServiceClient,
} = require('@google-cloud/bigquery-connection');
// Creates a client
const client = new ConnectionServiceClient();
// project = 'my-project' // Project to list connections for.
const parent = `projects/${project}/locations/US`;
async function listConnections() {
const [connections] = await client.listConnections({
parent: parent,
});
console.info(`found ${connections.length} connections:`);
console.info(connections);
}
const listConnectionsResponse = listConnections();
```
## Samples
Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-connection/samples) directory. Each sample's `README.md` has instructions for running its sample.
Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Connection_service.create_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.delete_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.get_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.list_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.update_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.create_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.delete_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.delete_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.delete_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.get_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_iam_policy.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.list_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.list_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.list_connections.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.set_iam_policy.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.test_iam_permissions.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.update_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Connection_service.update_connection_credential | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection_credential.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection_credential.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/quickstart.js,packages/google-cloud-bigquery-connection/samples/README.md) |
| Sample | Source Code |
| --------------------------- | --------------------------------- |
| create connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js) |
| delete connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js) |
| get connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js) |
| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js) |
| list connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js) |
| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js) |
| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js) |
| update connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js) |
| cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata_google.cloud.bigquery.connection.v1.json) |
| create connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js) |
| delete connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.delete_connection.js) |
| get connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_connection.js) |
| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_iam_policy.js) |
| list connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.list_connections.js) |
| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.set_iam_policy.js) |
| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.test_iam_permissions.js) |
| update connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection.js) |
| update connection credential | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection_credential.js) |
| cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.connection.v1beta1.json) |
The [Google BigQuery Connection Node.js Client API Reference][client-docs] documentation
also contains samples.
## Supported Node.js Versions

@@ -145,14 +111,2 @@

This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
unless absolutely necessary (e.g. because of critical security issues) or with
an extensive deprecation period. Issues and requests against **stable** libraries
are addressed with the highest priority.
More Information: [Google Cloud Platform Launch Stages][launch_stages]

@@ -164,9 +118,7 @@

Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/CONTRIBUTING.md).
Please note that this `README.md`, the `samples/README.md`,
Please note that this `README.md`
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
are generated from a central template. To edit one of these files, make an edit
to its templates in
[directory](https://github.com/googleapis/synthtool).
are generated from a central template.

@@ -177,6 +129,4 @@ ## License

See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/LICENSE)
[client-docs]: https://cloud.google.com/nodejs/docs/reference/bigquery-connection/latest
[product-docs]: https://cloud.google.com/bigquery/docs/reference/bigqueryconnection
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png

@@ -187,1 +137,4 @@ [projects]: https://console.cloud.google.com/project

[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples
[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/CHANGELOG.md
[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection