1.0.20220806 • Published 3 years ago

@maxim_mazurok/gapi.client.dataflow v1.0.20220806

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

TypeScript typings for Dataflow API v1b3

Manages Google Cloud Dataflow projects on Google Cloud Platform. For detailed description please check documentation.

Installing

Install typings for Dataflow API:

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

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',

      // View and manage your Google Compute Engine resources
      'https://www.googleapis.com/auth/compute',

      // View your Google Compute Engine resources
      'https://www.googleapis.com/auth/compute.readonly',

      // See your primary Google Account email address
      'https://www.googleapis.com/auth/userinfo.email',
    ],
    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 Dataflow API resources:

/*
Deletes a snapshot.
*/
await gapi.client.dataflow.projects.deleteSnapshots({ projectId: "projectId",  });

/*
Send a worker_message to the service.
*/
await gapi.client.dataflow.projects.workerMessages({ projectId: "projectId",  });
1.0.20220617

3 years ago

1.0.20220612

3 years ago

1.0.20220706

3 years ago

1.0.20220629

3 years ago

1.0.20220713

3 years ago

1.0.20220806

3 years ago

1.0.20220726

3 years ago

1.0.20220722

3 years ago

1.0.20220428

3 years ago

1.0.20220513

3 years ago

1.0.20220526

3 years ago

1.0.20220601

3 years ago

1.0.20220414

3 years ago

1.0.20220422

3 years ago

1.0.20220319

3 years ago

1.0.20220405

3 years ago

1.0.20220329

3 years ago

1.0.20220301

3 years ago

1.0.20220312

3 years ago

1.0.20220218

3 years ago

1.0.20211229

3 years ago

1.0.20220215

3 years ago

1.0.20211204

4 years ago

1.0.20211029

4 years ago

1.0.20211015

4 years ago

1.0.20210928

4 years ago

1.0.20210918

4 years ago

1.0.20210910

4 years ago

1.0.20210825

4 years ago

1.0.20210818

4 years ago

1.0.20210803

4 years ago

1.0.20210720

4 years ago

1.0.20210703

4 years ago

1.0.20210618

4 years ago

1.0.20210616

4 years ago

1.0.20210607

4 years ago

1.0.20210529

4 years ago

1.0.20210522

4 years ago

1.0.20210504

4 years ago

1.0.20210430

4 years ago

1.0.20210420

4 years ago

1.0.20210416

4 years ago

1.0.20210408

4 years ago

1.0.20210331

4 years ago

1.0.20210324

4 years ago

1.0.20210314

4 years ago

1.0.20210307

4 years ago

1.0.20210301

4 years ago

1.0.20210217

4 years ago

1.0.20210203

4 years ago

1.0.20210131

4 years ago

1.0.20210123

4 years ago

1.0.20210120

4 years ago

1.0.20210116

4 years ago

1.0.20210106

4 years ago

1.0.20201207

5 years ago

1.0.20201204

5 years ago

1.0.20201117

5 years ago

1.0.20201106

5 years ago

1.0.20201023

5 years ago