0.0.20240502 • Published 14 hours ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
14 hours ago

TypeScript typings for Google Cloud Memorystore for Redis API v1

Creates and manages Redis instances on the Google Cloud Platform. For detailed description please check documentation.

Installing

Install typings for Google Cloud Memorystore for Redis API:

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

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

0.0.20240502

14 hours ago

0.0.20240425

8 days ago

0.0.20240418

15 days ago

0.0.20240411

21 days ago

0.0.20240327

1 month ago

0.0.20240319

2 months ago

0.0.20240307

2 months ago

0.0.20240229

2 months ago

0.0.20240226

2 months ago

0.0.20240220

3 months ago

0.0.20240208

3 months ago

0.0.20240201

3 months ago

0.0.20240125

3 months ago

0.0.20240118

4 months ago

0.0.20240111

4 months ago

0.0.20240104

4 months ago

0.0.20240102

4 months ago

0.0.20231212

5 months ago

0.0.20231206

5 months ago

0.0.20231129

5 months ago

0.0.20230728

9 months ago

0.0.20231017

7 months ago

0.0.20230720

10 months ago

0.0.20231019

7 months ago

0.0.20230925

8 months ago

0.0.20230804

9 months ago

0.0.20231102

6 months ago

0.0.20230915

8 months ago

0.0.20230718

10 months ago

0.0.20230711

10 months ago

0.0.20231009

7 months ago

0.0.20230912

8 months ago

0.0.20231015

7 months ago

0.0.20230905

8 months ago

0.0.20230627

10 months ago

0.0.20231002

7 months ago

0.0.20230511

12 months ago

0.0.20230518

12 months ago

0.0.20230620

11 months ago

0.0.20230508

12 months ago

0.0.20230608

11 months ago

0.0.20230601

11 months ago

0.0.20230428

1 year ago

0.0.20230530

11 months ago

0.0.20230418

1 year ago

0.0.20230218

1 year ago

0.0.20230318

1 year ago

0.0.20230228

1 year ago

0.0.20230309

1 year ago

0.0.20230328

1 year ago

0.0.20230411

1 year ago

0.0.20230209

1 year ago

0.0.20230131

1 year ago

0.0.20230202

1 year ago

0.0.20221127

1 year ago

0.0.20221103

1 year ago

0.0.20230124

1 year ago

0.0.20230103

1 year ago

0.0.20221108

1 year ago

0.0.20230111

1 year ago

0.0.20221206

1 year ago

0.0.20221007

2 years ago

0.0.20221027

2 years ago

0.0.20220922

2 years ago

0.0.20220818

2 years ago

0.0.20220909

2 years ago

0.0.20220825

2 years ago

0.0.20220915

2 years ago

0.0.20220809

2 years ago

0.0.20220728

2 years ago