Send feedback
Class GCEImages (5.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
Package
gce-images
Constructors
(constructor)(config)
constructor ( config ? : GCEImagesConfig | AuthOptions );
Constructs a new instance of the GCEImages
class
Properties
OS_TO_URL
OS_TO_URL : {
[ index : string ] : string ;
} ;
OS_URLS
Methods
_filterDeprecated(image)
_filterDeprecated ( image : Image ): boolean ;
Parameter Name Description image
Image_2
Returns Type Description boolean
_getAllByOS(options)
_getAllByOS ( options : GetOptions & {
osNames : string [] ;
} ): Promise<Image [] >;
Parameter Name Description options
GetOptions & {
osNames: string[];
}
Returns Type Description Promise <Image []>
_parseArguments(options, callback)
_parseArguments<O , C >( options : any , callback : any ): ParsedArguments<O , C >;
Parameters Name Description options
any
callback
any
Returns Type Description ParsedArguments <O, C>
Type Parameters Name Description O
C
_parseOsInput ( os : string ): {
name : string ;
version : string ;
url : string ;
} ;
Parameter Name Description os
string
Returns Type Description {
name: string;
version: string;
url: string;
}
_sortNewestFirst(imageA, imageB)
_sortNewestFirst ( imageA : Image , imageB : Image ): 0 | 1 | -1 ;
Returns Type Description 0 | 1 | -1
getAll(cb)
getAll ( cb : GetAllCallback ): void ;
Get all available images.
Returns Type Description void
{Promise} if callback is omitted.
getAll(opts)
getAll(opts?: GetOptions | string): Promise<Image[] | ImagesMap>;
getAll(opts, cb)
getAll ( opts : GetOptions | string , cb : GetAllCallback ): void ;
Returns Type Description void
getLatest(cb)
getLatest ( cb : GetLatestCallback ): void ;
Get all available images, but only return the newest one.
Returns Type Description void
{Promise} if callback is omitted.
getLatest(opts)
getLatest(opts?: GetOptions | string): Promise<Image | ImageMap>;
getLatest(opts, cb)
getLatest ( opts : GetOptions | string , cb : GetLatestCallback ): void ;
Returns Type Description void
getProjectId()
getProjectId(): Promise<string>;
Returns Type Description Promise <string>
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-10 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-10 UTC."],[],[]]