1.0.20220804 • Published 3 years ago

@maxim_mazurok/gapi.client.dataproc v1.0.20220804

Weekly downloads
74
License
MIT
Repository
github
Last release
3 years ago

TypeScript typings for Cloud Dataproc API v1

Manages Hadoop-based clusters and jobs on Google Cloud Platform. For detailed description please check documentation.

Installing

Install typings for Cloud Dataproc API:

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

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

1.0.20220628

3 years ago

1.0.20220718

3 years ago

1.0.20220726

3 years ago

1.0.20220804

3 years ago

1.0.20220610

3 years ago

1.0.20220429

3 years ago

1.0.20220511

3 years ago

1.0.20220526

3 years ago

1.0.20220419

3 years ago

1.0.20220421

3 years ago

1.0.20220324

3 years ago

1.0.20220404

3 years ago

1.0.20220224

3 years ago

1.0.20220304

3 years ago

1.0.20220311

3 years ago

1.0.20220216

3 years ago

1.0.20220105

3 years ago

1.0.20220113

3 years ago

1.0.20220111

3 years ago

1.0.20220201

3 years ago

1.0.20220122

3 years ago

1.0.20211111

4 years ago

1.0.20211209

4 years ago

1.0.20211105

4 years ago

1.0.20211202

4 years ago

1.0.20211021

4 years ago

1.0.20211029

4 years ago

1.0.20211019

4 years ago

1.0.20210930

4 years ago

1.0.20210923

4 years ago

1.0.20210920

4 years ago

1.0.20210909

4 years ago

1.0.20210902

4 years ago

1.0.20210825

4 years ago

1.0.20210819

4 years ago

1.0.20210812

4 years ago

1.0.20210729

4 years ago

1.0.20210723

4 years ago

1.0.20210715

4 years ago

1.0.20210709

4 years ago

1.0.20210708

4 years ago

1.0.20210702

4 years ago

1.0.20210625

4 years ago

1.0.20210622

4 years ago

1.0.20210604

4 years ago

1.0.20210521

4 years ago

1.0.20210507

4 years ago

1.0.20210421

4 years ago

1.0.20210406

4 years ago

1.0.20210322

4 years ago

1.0.20210315

4 years ago

1.0.20210305

4 years ago

1.0.20210225

4 years ago

1.0.20210218

4 years ago

1.0.20210205

4 years ago

1.0.20210128

4 years ago

1.0.20210121

4 years ago

1.0.20210114

4 years ago

1.0.20210108

4 years ago

1.0.20201229

4 years ago

1.0.20201210

5 years ago

1.0.20201120

5 years ago

1.0.20201105

5 years ago