0.0.20240513 • Published 4 days ago

@maxim_mazurok/gapi.client.datamigration-v1 v0.0.20240513

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

TypeScript typings for Database Migration API v1

Manage Cloud Database Migration Service resources on Google Cloud Platform. For detailed description please check documentation.

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:

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

Then load api client wrapper:

gapi.client.load(
  'https://datamigration.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.datamigration
  }
);
// 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('datamigration', 'v1', () => {
  // now we can use:
  // gapi.client.datamigration
});

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

// 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:

0.0.20240513

4 days ago

0.0.20240506

10 days ago

0.0.20240430

17 days ago

0.0.20240421

27 days ago

0.0.20240410

1 month ago

0.0.20240327

2 months ago

0.0.20240315

2 months ago

0.0.20240312

2 months ago

0.0.20240228

3 months ago

0.0.20240221

3 months ago

0.0.20240214

3 months ago

0.0.20240207

3 months ago

0.0.20240203

3 months ago

0.0.20240122

4 months ago

0.0.20240114

4 months ago

0.0.20240103

4 months ago

0.0.20231214

5 months ago

0.0.20231204

5 months ago

0.0.20231106

6 months ago

0.0.20230731

10 months ago

0.0.20231031

7 months ago

0.0.20231111

6 months ago

0.0.20230807

9 months ago

0.0.20231018

7 months ago

0.0.20230920

8 months ago

0.0.20230723

10 months ago

0.0.20230925

8 months ago

0.0.20230802

10 months ago

0.0.20230712

10 months ago

0.0.20230710

10 months ago

0.0.20230911

8 months ago

0.0.20230912

8 months ago

0.0.20231011

7 months ago

0.0.20230702

11 months ago

0.0.20230901

9 months ago

0.0.20230703

11 months ago

0.0.20230619

11 months ago

0.0.20230610

11 months ago

0.0.20230517

1 year ago

0.0.20230503

1 year ago

0.0.20230426

1 year ago

0.0.20230622

11 months ago

0.0.20230531

12 months ago

0.0.20230510

1 year ago

0.0.20230301

1 year ago

0.0.20230320

1 year ago

0.0.20230420

1 year ago

0.0.20230222

1 year ago

0.0.20230327

1 year ago

0.0.20230308

1 year ago

0.0.20230405

1 year ago

0.0.20230410

1 year ago

0.0.20230215

1 year ago

0.0.20230201

1 year ago

0.0.20230125

1 year ago

0.0.20230118

1 year ago

0.0.20230105

1 year ago

0.0.20221201

1 year ago

0.0.20221211

1 year ago

0.0.20221220

1 year ago

0.0.20221108

2 years ago

0.0.20221020

2 years ago

0.0.20221018

2 years ago

0.0.20220822

2 years ago

0.0.20220901

2 years ago

0.0.20220913

2 years ago

0.0.20220804

2 years ago