# @maxim_mazurok/gapi.client.dataflow

> TypeScript typings for Dataflow API v1b3

Latest version **1.0.20220806** (published 2022-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maxim_mazurok/gapi.client.dataflow
pnpm add @maxim_mazurok/gapi.client.dataflow
yarn add @maxim_mazurok/gapi.client.dataflow
bun add @maxim_mazurok/gapi.client.dataflow
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.20220806 |
| Published | 2022-08-11 |
| First published | 2020-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 928.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 59 |
| Author | Maxim Mazurok |
| Maintainers | maxim_mazurok |

## Links

- npm: https://www.npmjs.com/package/@maxim_mazurok/gapi.client.dataflow
- 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.dataflow

## Dependencies (1)

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

## Recent versions

- 1.0.20220806 (latest) — 2022-08-11
- 1.0.20220726 — 2022-08-02
- 1.0.20220722 — 2022-07-27
- 1.0.20220713 — 2022-07-20
- 1.0.20220706 — 2022-07-12
- 1.0.20220629 — 2022-07-01
- 1.0.20220617 — 2022-06-25
- 1.0.20220612 — 2022-06-18
- 1.0.20220601 — 2022-06-09
- 1.0.20220526 — 2022-06-01
- 1.0.20220513 — 2022-05-19
- 1.0.20220428 — 2022-05-04
- 1.0.20220422 — 2022-04-27
- 1.0.20220414 — 2022-04-20
- 1.0.20220405 — 2022-04-13
- … 45 more at https://npm.io/package/@maxim_mazurok/gapi.client.dataflow/versions

## README

# TypeScript typings for Dataflow API v1b3

Manages Google Cloud Dataflow projects on Google Cloud Platform.
For detailed description please check [documentation](https://cloud.google.com/dataflow).

## Installing

Install typings for Dataflow API:

```
npm install @types/gapi.client.dataflow@v1b3 --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('dataflow', 'v1b3', () => {
  // now we can use gapi.client.dataflow
  // ...
});
```

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 = [ 
      // 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 and manage your Google Compute Engine resources
      'https://www.googleapis.com/auth/compute',

      // View your Google Compute Engine resources
      'https://www.googleapis.com/auth/compute.readonly',

      // See your primary Google Account email address
      'https://www.googleapis.com/auth/userinfo.email',
    ],
    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 Dataflow API resources:

```typescript

/*
Deletes a snapshot.
*/
await gapi.client.dataflow.projects.deleteSnapshots({ projectId: "projectId",  });

/*
Send a worker_message to the service.
*/
await gapi.client.dataflow.projects.workerMessages({ projectId: "projectId",  });
```

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