Send feedback
Class GCEImages (4.0.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.1 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
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 ) : 1 | - 1 | 0 ;
Parameters Name Description imageA
Image
imageB
Image
Returns Type Description 1 | -1 | 0
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 >;
Returns Type Description 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 >;
Returns Type Description 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-12-12 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-12-12 UTC."],[],[]]