1.0.20220806 • Published 2 years ago

@maxim_mazurok/gapi.client.dataflow v1.0.20220806

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

2 years ago

1.0.20220612

2 years ago

1.0.20220706

2 years ago

1.0.20220629

2 years ago

1.0.20220713

2 years ago

1.0.20220806

2 years ago

1.0.20220726

2 years ago

1.0.20220722

2 years ago

1.0.20220428

2 years ago

1.0.20220513

2 years ago

1.0.20220526

2 years ago

1.0.20220601

2 years ago

1.0.20220414

2 years ago

1.0.20220422

2 years ago

1.0.20220319

2 years ago

1.0.20220405

2 years ago

1.0.20220329

2 years ago

1.0.20220301

2 years ago

1.0.20220312

2 years ago

1.0.20220218

2 years ago

1.0.20211229

2 years ago

1.0.20220215

2 years ago

1.0.20211204

2 years ago

1.0.20211029

3 years ago

1.0.20211015

3 years ago

1.0.20210928

3 years ago

1.0.20210918

3 years ago

1.0.20210910

3 years ago

1.0.20210825

3 years ago

1.0.20210818

3 years ago

1.0.20210803

3 years ago

1.0.20210720

3 years ago

1.0.20210703

3 years ago

1.0.20210618

3 years ago

1.0.20210616

3 years ago

1.0.20210607

3 years ago

1.0.20210529

3 years ago

1.0.20210522

3 years ago

1.0.20210504

3 years ago

1.0.20210430

3 years ago

1.0.20210420

3 years ago

1.0.20210416

3 years ago

1.0.20210408

3 years ago

1.0.20210331

3 years ago

1.0.20210324

3 years ago

1.0.20210314

3 years ago

1.0.20210307

3 years ago

1.0.20210301

3 years ago

1.0.20210217

3 years ago

1.0.20210203

3 years ago

1.0.20210131

3 years ago

1.0.20210123

3 years ago

1.0.20210120

3 years ago

1.0.20210116

3 years ago

1.0.20210106

3 years ago

1.0.20201207

3 years ago

1.0.20201204

3 years ago

1.0.20201117

3 years ago

1.0.20201106

4 years ago

1.0.20201023

4 years ago