0.0.20240513 • Published 4 days ago

@maxim_mazurok/gapi.client.dataflow-v1b3 v0.0.20240513

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days 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(
  'https://dataflow.googleapis.com/$discovery/rest?version=v1b3',
  () => {
    // now we can use:
    // gapi.client.dataflow
  }
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
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',
  ],
  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'});
0.0.20240513

4 days ago

0.0.20240430

20 days ago

0.0.20240415

1 month ago

0.0.20240324

2 months ago

0.0.20240317

2 months ago

0.0.20240310

2 months ago

0.0.20240303

2 months ago

0.0.20240225

3 months ago

0.0.20240218

3 months ago

0.0.20240207

3 months ago

0.0.20240128

4 months ago

0.0.20240121

4 months ago

0.0.20240113

4 months ago

0.0.20240107

4 months ago

0.0.20231217

5 months ago

0.0.20231210

5 months ago

0.0.20231203

6 months ago

0.0.20231130

6 months ago

0.0.20231029

7 months ago

0.0.20231105

6 months ago

0.0.20230812

9 months ago

0.0.20231112

6 months ago

0.0.20230929

8 months ago

0.0.20230806

10 months ago

0.0.20230729

10 months ago

0.0.20230924

8 months ago

0.0.20231021

7 months ago

0.0.20230917

8 months ago

0.0.20230910

8 months ago

0.0.20231008

7 months ago

0.0.20231015

7 months ago

0.0.20230708

10 months ago

0.0.20230902

9 months ago

0.0.20230703

11 months ago

0.0.20230619

11 months ago

0.0.20230514

1 year ago

0.0.20230608

11 months ago

0.0.20230524

12 months ago

0.0.20230506

1 year ago

0.0.20230529

12 months ago

0.0.20230427

1 year ago

0.0.20230414

1 year ago

0.0.20230313

1 year ago

0.0.20230419

1 year ago

0.0.20230301

1 year ago

0.0.20230321

1 year ago

0.0.20230227

1 year ago

0.0.20230327

1 year ago

0.0.20230331

1 year ago

0.0.20230213

1 year ago

0.0.20230202

1 year ago

0.0.20230106

1 year ago

0.0.20221214

1 year ago

0.0.20221102

2 years ago

0.0.20230119

1 year ago

0.0.20221229

1 year ago

0.0.20221206

1 year ago

0.0.20221128

1 year ago

0.0.20221005

2 years ago

0.0.20220920

2 years ago

0.0.20221025

2 years ago

0.0.20221021

2 years ago

0.0.20220916

2 years ago

0.0.20220824

2 years ago

0.0.20220904

2 years ago

0.0.20220812

2 years ago

0.0.20220806

2 years ago