Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function getLatest() {
const gceImages = new GCEImages();
const result = await gceImages.getLatest({
osNames: ['ubuntu-1404'],
deprecated: true,
});
console.log(result);
}
async function getLatest() {
const gceImages = new GCEImages();
const projectId = await gceImages.getProjectId();
const result = await gceImages.getLatest(`${projectId}/my-ubuntu-image`);
console.log(result);
}
async function getLatest() {
const gceImages = new GCEImages();
const result = await gceImages.getLatest({
osNames: ['ubuntu'],
deprecated: true,
});
console.log(result);
}
async function main() {
const gceImages = new GCEImages();
const result = await gceImages.getLatest('ubuntu-1404');
console.log(result);
}
main().catch(console.error);
*/
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,
});
}
/**