0.0.20241027 • Published 8 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months 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.20241027

8 months ago

0.0.20241014

9 months ago

0.0.20241010

9 months ago

0.0.20240926

9 months ago

0.0.20241001

9 months ago

0.0.20240919

10 months ago

0.0.20240912

10 months ago

0.0.20240906

10 months ago

0.0.20240822

11 months ago

0.0.20240530

1 year ago

0.0.20240808

11 months ago

0.0.20240606

1 year ago

0.0.20240801

11 months ago

0.0.20240625

1 year ago

0.0.20240725

12 months ago

0.0.20240704

1 year ago

0.0.20240620

1 year ago

0.0.20240523

1 year ago

0.0.20240815

11 months ago

0.0.20240718

12 months ago

0.0.20240711

12 months ago

0.0.20240516

1 year ago

0.0.20240509

1 year ago

0.0.20240502

1 year ago

0.0.20240421

1 year ago

0.0.20240411

1 year ago

0.0.20240328

1 year ago

0.0.20240321

1 year ago

0.0.20240314

1 year ago

0.0.20240307

1 year ago

0.0.20240229

1 year ago

0.0.20240222

1 year ago

0.0.20240211

1 year ago

0.0.20240204

1 year ago

0.0.20240122

1 year ago

0.0.20240104

2 years ago

0.0.20231215

2 years ago

0.0.20231208

2 years ago

0.0.20231201

2 years ago

0.0.20231101

2 years ago

0.0.20231027

2 years ago

0.0.20231024

2 years ago

0.0.20231013

2 years ago

0.0.20230928

2 years ago

0.0.20230918

2 years ago

0.0.20230908

2 years ago

0.0.20230901

2 years ago

0.0.20230811

2 years ago

0.0.20230804

2 years ago

0.0.20230725

2 years ago

0.0.20230721

2 years ago

0.0.20230714

2 years ago