# @maxim_mazurok/gapi.client.datamigration

> TypeScript typings for Database Migration API v1

Latest version **1.0.20220804** (published 2022-08-10) · MIT license · 0 weekly downloads

## Install

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

## 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.20220804 |
| Published | 2022-08-10 |
| First published | 2020-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 114.8 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.datamigration
- 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.datamigration

## Dependencies (1)

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

## Recent versions

- 1.0.20220804 (latest) — 2022-08-10
- 1.0.20220731 — 2022-08-02
- 1.0.20220714 — 2022-07-20
- 1.0.20220707 — 2022-07-12
- 1.0.20220703 — 2022-07-06
- 1.0.20220623 — 2022-06-28
- 1.0.20220616 — 2022-06-20
- 1.0.20220602 — 2022-06-08
- 1.0.20220518 — 2022-05-24
- 1.0.20220511 — 2022-05-17
- 1.0.20220504 — 2022-05-10
- 1.0.20220427 — 2022-05-04
- 1.0.20220420 — 2022-04-26
- 1.0.20220406 — 2022-04-12
- 1.0.20220330 — 2022-04-05
- … 34 more at https://npm.io/package/@maxim_mazurok/gapi.client.datamigration/versions

## README

# TypeScript typings for Database Migration API v1

Manage Cloud Database Migration Service resources on Google Cloud Platform.
For detailed description please check [documentation](https://cloud.google.com/database-migration/).

## Installing

Install typings for Database Migration API:

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

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',
    ],
    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 Database Migration API resources:

```typescript
```

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