How to use the gce-images.GCEImages function in gce-images

To help you get started, we’ve selected a few gce-images examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / nodejs-gce-images / samples / latestSpecificOS.js View on Github external
async function getLatest() {
  const gceImages = new GCEImages();
  const result = await gceImages.getLatest({
    osNames: ['ubuntu-1404'],
    deprecated: true,
  });
  console.log(result);
}
github googleapis / nodejs-gce-images / samples / fromProject.js View on Github external
async function getLatest() {
  const gceImages = new GCEImages();
  const projectId = await gceImages.getProjectId();
  const result = await gceImages.getLatest(`${projectId}/my-ubuntu-image`);
  console.log(result);
}
github googleapis / nodejs-gce-images / samples / specificOS.js View on Github external
async function getLatest() {
  const gceImages = new GCEImages();
  const result = await gceImages.getLatest({
    osNames: ['ubuntu'],
    deprecated: true,
  });
  console.log(result);
}
github googleapis / nodejs-gce-images / samples / quickstart.js View on Github external
async function main() {
  const gceImages = new GCEImages();
  const result = await gceImages.getLatest('ubuntu-1404');
  console.log(result);
}
main().catch(console.error);
github googleapis / nodejs-compute / src / zone.js View on Github external
*/
      id: name,
      methods: methods,
    });
    /**
     * The parent {@link Compute} instance of this {@link Zone} instance.
     * @name Zone#compute
     * @type {Compute}
     */
    this.compute = compute;
    /**
     * @name Zone#name
     * @type {string}
     */
    this.name = name;
    this.gceImages = new GCEImages({
      authClient: compute.authClient,
    });
  }
  /**

gce-images

Get a list of globally available Google Compute Engine images

MIT
Latest version published 3 months ago

Package Health Score

82 / 100
Full package analysis

Popular gce-images functions