1.0.20220808 • Published 2 years ago

@maxim_mazurok/gapi.client.composer v1.0.20220808

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

2 years ago

1.0.20220622

2 years ago

1.0.20220628

2 years ago

1.0.20220708

2 years ago

1.0.20220716

2 years ago

1.0.20220727

2 years ago

1.0.20220808

2 years ago

1.0.20220512

2 years ago

1.0.20220518

2 years ago

1.0.20220606

2 years ago

1.0.20220525

2 years ago

1.0.20220531

2 years ago

1.0.20220420

2 years ago

1.0.20220402

2 years ago

1.0.20220326

2 years ago

1.0.20220411

2 years ago

1.0.20220317

2 years ago

1.0.20220224

2 years ago

1.0.20220307

2 years ago

1.0.20220118

2 years ago

1.0.20220202

2 years ago

1.0.20220108

2 years ago

1.0.20220212

2 years ago

1.0.20211130

2 years ago

1.0.20211113

3 years ago

1.0.20211208

2 years ago

1.0.20211102

3 years ago

1.0.20211013

3 years ago

1.0.20210928

3 years ago

1.0.20210922

3 years ago

1.0.20210913

3 years ago

1.0.20210827

3 years ago

1.0.20210822

3 years ago

1.0.20210810

3 years ago

1.0.20210804

3 years ago

1.0.20210728

3 years ago

1.0.20210721

3 years ago

1.0.20210713

3 years ago

1.0.20210705

3 years ago

1.0.20210625

3 years ago

1.0.20210614

3 years ago

1.0.20210601

3 years ago

1.0.20210518

3 years ago

1.0.20210510

3 years ago

1.0.20210427

3 years ago

1.0.20210421

3 years ago

1.0.20210413

3 years ago

1.0.20210407

3 years ago

1.0.20210330

3 years ago

1.0.20210319

3 years ago

1.0.20210310

3 years ago

1.0.20210227

3 years ago

1.0.20210217

3 years ago

1.0.20210210

3 years ago

1.0.20210202

3 years ago

1.0.20210126

3 years ago

1.0.20210118

3 years ago

1.0.20210109

3 years ago

1.0.20201208

3 years ago

1.0.20201202

3 years ago

1.0.20201104

4 years ago