1.0.20220808 • Published 3 years ago

@maxim_mazurok/gapi.client.composer v1.0.20220808

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

TypeScript typings for Cloud Composer API v1

Manages Apache Airflow environments on Google Cloud Platform. For detailed description please check documentation.

Installing

Install typings for Cloud Composer API:

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

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

1.0.20220613

3 years ago

1.0.20220622

3 years ago

1.0.20220628

3 years ago

1.0.20220708

3 years ago

1.0.20220716

3 years ago

1.0.20220727

3 years ago

1.0.20220808

3 years ago

1.0.20220512

3 years ago

1.0.20220518

3 years ago

1.0.20220606

3 years ago

1.0.20220525

3 years ago

1.0.20220531

3 years ago

1.0.20220420

3 years ago

1.0.20220402

3 years ago

1.0.20220326

3 years ago

1.0.20220411

3 years ago

1.0.20220317

3 years ago

1.0.20220224

3 years ago

1.0.20220307

3 years ago

1.0.20220118

3 years ago

1.0.20220202

3 years ago

1.0.20220108

3 years ago

1.0.20220212

3 years ago

1.0.20211130

4 years ago

1.0.20211113

4 years ago

1.0.20211208

4 years ago

1.0.20211102

4 years ago

1.0.20211013

4 years ago

1.0.20210928

4 years ago

1.0.20210922

4 years ago

1.0.20210913

4 years ago

1.0.20210827

4 years ago

1.0.20210822

4 years ago

1.0.20210810

4 years ago

1.0.20210804

4 years ago

1.0.20210728

4 years ago

1.0.20210721

4 years ago

1.0.20210713

4 years ago

1.0.20210705

4 years ago

1.0.20210625

4 years ago

1.0.20210614

4 years ago

1.0.20210601

4 years ago

1.0.20210518

4 years ago

1.0.20210510

4 years ago

1.0.20210427

4 years ago

1.0.20210421

4 years ago

1.0.20210413

4 years ago

1.0.20210407

4 years ago

1.0.20210330

4 years ago

1.0.20210319

4 years ago

1.0.20210310

4 years ago

1.0.20210227

4 years ago

1.0.20210217

4 years ago

1.0.20210210

4 years ago

1.0.20210202

4 years ago

1.0.20210126

4 years ago

1.0.20210118

4 years ago

1.0.20210109

4 years ago

1.0.20201208

5 years ago

1.0.20201202

5 years ago

1.0.20201104

5 years ago