0.0.20240511 • Published 4 days ago

@maxim_mazurok/gapi.client.file-v1 v0.0.20240511

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

TypeScript typings for Cloud Filestore API v1

The Cloud Filestore API is used for creating and managing cloud file servers. For detailed description please check documentation.

Installing

Install typings for Cloud Filestore API:

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

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

0.0.20240511

4 days ago

0.0.20240307

2 months ago

0.0.20240304

2 months ago

0.0.20240126

4 months ago

0.0.20240117

4 months ago

0.0.20240115

4 months ago

0.0.20240109

4 months ago

0.0.20231231

5 months ago

0.0.20231213

5 months ago

0.0.20231210

5 months ago

0.0.20231203

6 months ago

0.0.20231110

6 months ago

0.0.20231028

7 months ago

0.0.20231008

7 months ago

0.0.20230815

9 months ago

0.0.20230912

8 months ago

0.0.20230720

10 months ago

0.0.20231019

7 months ago

0.0.20230902

9 months ago

0.0.20230803

10 months ago

0.0.20230704

10 months ago

0.0.20230925

8 months ago

0.0.20230625

11 months ago

0.0.20230514

12 months ago

0.0.20230614

11 months ago

0.0.20230521

12 months ago

0.0.20230503

1 year ago

0.0.20230429

1 year ago

0.0.20230313

1 year ago

0.0.20230302

1 year ago

0.0.20230416

1 year ago

0.0.20230405

1 year ago

0.0.20230219

1 year ago

0.0.20230422

1 year ago

0.0.20230323

1 year ago

0.0.20230312

1 year ago

0.0.20230129

1 year ago

0.0.20230209

1 year ago

0.0.20230125

1 year ago

0.0.20230103

1 year ago

0.0.20221207

1 year ago

0.0.20230118

1 year ago

0.0.20221111

2 years ago

0.0.20221026

2 years ago

0.0.20221010

2 years ago

0.0.20220906

2 years ago

0.0.20220729

2 years ago