1.0.20220802 • Published 2 years ago

@maxim_mazurok/gapi.client.memcache v1.0.20220802

Weekly downloads
76
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for Cloud Memorystore for Memcached API v1

Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP. For detailed description please check documentation.

Installing

Install typings for Cloud Memorystore for Memcached API:

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

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 Cloud Memorystore for Memcached API resources:

1.0.20220711

2 years ago

1.0.20220721

2 years ago

1.0.20220622

2 years ago

1.0.20220802

2 years ago

1.0.20220709

2 years ago

1.0.20220502

2 years ago

1.0.20220419

2 years ago

1.0.20220404

2 years ago

1.0.20220317

2 years ago

1.0.20220126

2 years ago

1.0.20220224

2 years ago

1.0.20220208

2 years ago

1.0.20211213

2 years ago

1.0.20211028

3 years ago

1.0.20210921

3 years ago

1.0.20210917

3 years ago

1.0.20210907

3 years ago

1.0.20210823

3 years ago

1.0.20210810

3 years ago

1.0.20210802

3 years ago

1.0.20210707

3 years ago

1.0.20210629

3 years ago

1.0.20210615

3 years ago

1.0.20210608

3 years ago

1.0.20210601

3 years ago

1.0.20210524

3 years ago

1.0.20210517

3 years ago

1.0.20210504

3 years ago

1.0.20210413

3 years ago

1.0.20210401

3 years ago

1.0.20210324

3 years ago

1.0.20210209

3 years ago

1.0.20210121

3 years ago

1.0.20210112

3 years ago

1.0.20210105

3 years ago

1.0.20201109

4 years ago