0.0.20241015 • Published 9 months ago

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

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

9 months ago

0.0.20240925

9 months ago

0.0.20240930

9 months ago

0.0.20241008

9 months ago

0.0.20240912

10 months ago

0.0.20240905

10 months ago

0.0.20240821

10 months ago

0.0.20240728

11 months ago

0.0.20240608

1 year ago

0.0.20240721

11 months ago

0.0.20240523

1 year ago

0.0.20240619

1 year ago

0.0.20240626

1 year ago

0.0.20240704

1 year ago

0.0.20240716

12 months ago

0.0.20240511

1 year ago

0.0.20240307

1 year ago

0.0.20240304

1 year ago

0.0.20240126

1 year ago

0.0.20240117

1 year ago

0.0.20240115

1 year ago

0.0.20240109

1 year ago

0.0.20231231

2 years ago

0.0.20231213

2 years ago

0.0.20231210

2 years ago

0.0.20231203

2 years ago

0.0.20231110

2 years ago

0.0.20231028

2 years ago

0.0.20231008

2 years ago

0.0.20230815

2 years ago

0.0.20230912

2 years ago

0.0.20230720

2 years ago

0.0.20231019

2 years ago

0.0.20230902

2 years ago

0.0.20230803

2 years ago

0.0.20230704

2 years ago

0.0.20230925

2 years ago

0.0.20230625

2 years ago

0.0.20230514

2 years ago

0.0.20230614

2 years ago

0.0.20230521

2 years ago

0.0.20230503

2 years ago

0.0.20230429

2 years ago

0.0.20230313

2 years ago

0.0.20230302

2 years ago

0.0.20230416

2 years ago

0.0.20230405

2 years ago

0.0.20230219

2 years ago

0.0.20230422

2 years ago

0.0.20230323

2 years ago

0.0.20230312

2 years ago

0.0.20230129

2 years ago

0.0.20230209

2 years ago

0.0.20230125

2 years ago

0.0.20230103

3 years ago

0.0.20221207

3 years ago

0.0.20230118

2 years ago

0.0.20221111

3 years ago

0.0.20221026

3 years ago

0.0.20221010

3 years ago

0.0.20220906

3 years ago

0.0.20220729

3 years ago