Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

googleapis-nodejs-cloudbuild

vizzuality55Apache-2.00.0.2TypeScript support: included

Google Cloud Build Client Library for Node.js (unofficial)

google apis client, google api client, google apis, google api, google, google cloud platform, google cloud, cloud, google cloud build, cloud build

readme

Google Cloud Build Node.js Library

Table of contents:

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.

    Go to the projects page

  2. Enable billing for your project.

    Enable billing

  3. Enable the Google Cloud Build.

    Enable the API

  4. Set up authentication with a service account so you can access the API from your local workstation.

Installing the client library

npm install --save googleapis-nodejs-cloudbuild

Using the client library


// Imports the Google Cloud client library
const { GCF } = require('googleapis-nodejs-cloudbuild');

// Your Google Cloud Platform project ID
const projectId = 'YOUR_PROJECT_ID';

// Creates a client
const gcf = new GCF({
  keyFilename: './credentials.json',
  projectId
});

// Get Triggers and metadata
gcf
  .getCloudBuildTriggers()
  .then(data => {
    const fns = data[0];
    //console.log('Cloud Build Triggers: ', fns);
    const fn = fns[0];
    console.log(fn.metadata);
  })
  .catch(err => {
    console.error('ERROR:', err);
  });

Samples

Versioning

Contributing

License

Apache Version 2.0

See LICENSE