0.0.20240508 • Published 5 days ago

@maxim_mazurok/gapi.client.alloydb-v1beta v0.0.20240508

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

TypeScript typings for AlloyDB API v1beta

AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases. For detailed description please check documentation.

Installing

Install typings for AlloyDB API:

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

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 AlloyDB API resources:

0.0.20240508

5 days ago

0.0.20240501

13 days ago

0.0.20240424

20 days ago

0.0.20240417

27 days ago

0.0.20240410

1 month ago

0.0.20240320

2 months ago

0.0.20240315

2 months ago

0.0.20240306

2 months ago

0.0.20240228

2 months ago

0.0.20240223

3 months ago

0.0.20240216

3 months ago

0.0.20240207

3 months ago

0.0.20240118

4 months ago

0.0.20240117

4 months ago

0.0.20240103

4 months ago

0.0.20231206

5 months ago

0.0.20231128

6 months ago

0.0.20231109

6 months ago

0.0.20231031

6 months ago

0.0.20231025

7 months ago

0.0.20231011

7 months ago

0.0.20231006

7 months ago

0.0.20230918

8 months ago

0.0.20230821

8 months ago