# @maxim_mazurok/gapi.client.bigqueryreservation-v1beta1

> TypeScript typings for BigQuery Reservation API v1beta1

Latest version **0.0.20221016** (published 2022-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maxim_mazurok/gapi.client.bigqueryreservation-v1beta1
pnpm add @maxim_mazurok/gapi.client.bigqueryreservation-v1beta1
yarn add @maxim_mazurok/gapi.client.bigqueryreservation-v1beta1
bun add @maxim_mazurok/gapi.client.bigqueryreservation-v1beta1
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.20221016 |
| Published | 2022-10-19 |
| First published | 2022-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 86.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Maxim Mazurok |
| Maintainers | maxim_mazurok |

## Links

- npm: https://www.npmjs.com/package/@maxim_mazurok/gapi.client.bigqueryreservation-v1beta1
- Repository: https://github.com/Maxim-Mazurok/google-api-typings-generator
- Homepage: https://github.com/Maxim-Mazurok/google-api-typings-generator#readme
- Issues: https://github.com/Maxim-Mazurok/google-api-typings-generator/issues
- npm.io page: https://npm.io/package/@maxim_mazurok/gapi.client.bigqueryreservation-v1beta1

## Dependencies (2)

- [@types/gapi.client](https://npm.io/package/@types/gapi.client.md) *
- [@types/gapi.client.discovery](https://npm.io/package/@types/gapi.client.discovery.md) *

## Recent versions

- 0.0.20221016 (latest) — 2022-10-19
- 0.0.20221001 — 2022-10-03
- 0.0.20220928 — 2022-10-01
- 0.0.20220915 — 2022-09-21
- 0.0.20220910 — 2022-09-14
- 0.0.20220906 — 2022-09-09
- 0.0.20220826 — 2022-08-31
- 0.0.20220819 — 2022-08-24
- 0.0.20220730 — 2022-08-14

## README

# TypeScript typings for BigQuery Reservation API v1beta1

A service to modify your BigQuery flat-rate reservations.
For detailed description please check [documentation](https://cloud.google.com/bigquery/).

## Installing

Install typings for BigQuery Reservation API:

```
npm install @types/gapi.client.bigqueryreservation-v1beta1 --save-dev
```

## Usage

You need to initialize Google API client in your code:

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

Then load api client wrapper:

```typescript
gapi.client.load('https://bigqueryreservation.googleapis.com/$discovery/rest?version=v1beta1', () => {
  // now we can use:
  // gapi.client.bigqueryreservation
});
```

```typescript
// 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('bigqueryreservation', 'v1beta1', () => {
  // now we can use:
  // gapi.client.bigqueryreservation
});
```

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

```typescript
// 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',
    ],
    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 Reservation API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
```

---
_Source: https://npm.io/package/@maxim_mazurok/gapi.client.bigqueryreservation-v1beta1 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
