0.0.20240502 • Published 3 days ago

@maxim_mazurok/gapi.client.migrationcenter-v1 v0.0.20240502

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

TypeScript typings for Migration Center API v1

A unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud. For detailed description please check documentation.

Installing

Install typings for Migration Center API:

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

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 Migration Center API resources:

0.0.20240502

3 days ago

0.0.20240421

9 days ago

0.0.20240411

23 days ago

0.0.20240328

1 month ago

0.0.20240321

1 month ago

0.0.20240314

2 months ago

0.0.20240307

2 months ago

0.0.20240229

2 months ago

0.0.20240222

2 months ago

0.0.20240211

3 months ago

0.0.20240204

3 months ago

0.0.20240122

4 months ago

0.0.20240104

4 months ago

0.0.20231215

5 months ago

0.0.20231208

5 months ago

0.0.20231201

5 months ago

0.0.20231101

6 months ago

0.0.20231027

6 months ago

0.0.20231024

7 months ago

0.0.20231013

7 months ago

0.0.20230928

7 months ago

0.0.20230918

8 months ago

0.0.20230908

8 months ago

0.0.20230901

8 months ago

0.0.20230811

9 months ago

0.0.20230804

9 months ago

0.0.20230725

9 months ago

0.0.20230721

10 months ago

0.0.20230714

10 months ago