1.0.20220804 • Published 2 years ago

@maxim_mazurok/gapi.client.dataproc v1.0.20220804

Weekly downloads
74
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.20220718

2 years ago

1.0.20220726

2 years ago

1.0.20220804

2 years ago

1.0.20220610

2 years ago

1.0.20220429

2 years ago

1.0.20220511

2 years ago

1.0.20220526

2 years ago

1.0.20220419

2 years ago

1.0.20220421

2 years ago

1.0.20220324

2 years ago

1.0.20220404

2 years ago

1.0.20220224

2 years ago

1.0.20220304

2 years ago

1.0.20220311

2 years ago

1.0.20220216

2 years ago

1.0.20220105

2 years ago

1.0.20220113

2 years ago

1.0.20220111

2 years ago

1.0.20220201

2 years ago

1.0.20220122

2 years ago

1.0.20211111

3 years ago

1.0.20211209

2 years ago

1.0.20211105

3 years ago

1.0.20211202

2 years ago

1.0.20211021

3 years ago

1.0.20211029

3 years ago

1.0.20211019

3 years ago

1.0.20210930

3 years ago

1.0.20210923

3 years ago

1.0.20210920

3 years ago

1.0.20210909

3 years ago

1.0.20210902

3 years ago

1.0.20210825

3 years ago

1.0.20210819

3 years ago

1.0.20210812

3 years ago

1.0.20210729

3 years ago

1.0.20210723

3 years ago

1.0.20210715

3 years ago

1.0.20210709

3 years ago

1.0.20210708

3 years ago

1.0.20210702

3 years ago

1.0.20210625

3 years ago

1.0.20210622

3 years ago

1.0.20210604

3 years ago

1.0.20210521

3 years ago

1.0.20210507

3 years ago

1.0.20210421

3 years ago

1.0.20210406

3 years ago

1.0.20210322

3 years ago

1.0.20210315

3 years ago

1.0.20210305

3 years ago

1.0.20210225

3 years ago

1.0.20210218

3 years ago

1.0.20210205

3 years ago

1.0.20210128

3 years ago

1.0.20210121

3 years ago

1.0.20210114

3 years ago

1.0.20210108

3 years ago

1.0.20201229

3 years ago

1.0.20201210

3 years ago

1.0.20201120

3 years ago

1.0.20201105

4 years ago