Send feedback
Class GCEImages (3.0.4) Stay organized with collections
Save and categorize content based on your preferences.
Version 3.0.4 keyboard_arrow_down
Package
gce-images
Constructors
(constructor)(config)
constructor
(
config
?:
GCEImagesConfig
);
Constructs a new instance of the GCEImages
class
Parameter
Properties
OS_TO_URL
OS_TO_URL
:
{
[
index
:
string
]
:
string
;
};
OS_URLS
Methods
_filterDeprecated(image)
_filterDeprecated
(
image
:
Image
)
:
boolean
;
Parameter
Returns
_getAllByOS(options)
_getAllByOS
(
options
:
GetOptions
&
{
osNames
:
string
[];
})
:
Promise<Image
[]>;
Parameter Name
Description
options
GetOptions
& {
osNames: string[];
}
Returns
_parseArguments(options, callback)
_parseArguments<O
,
C
> (
options
:
any
,
callback
:
any
)
:
ParsedArguments<O
,
C
> ;
Parameters
Returns
Type Parameters
_parseOsInput
(
os
:
string
)
:
{
name
:
string
;
version
:
string
;
url
:
string
;
};
Parameter
Returns
_sortNewestFirst(imageA, imageB)
_sortNewestFirst
(
imageA
:
Image
,
imageB
:
Image
)
:
1
|
-
1
|
0
;
Parameters
Returns
getAll(cb)
getAll
(
cb
:
GetAllCallback
)
:
void
;
Get all available images.
Parameter
Returns Type
Description
void
{Promise} if callback is omitted.
getAll(opts)
getAll
(
opts
?:
GetOptions
|
string
)
:
Promise<Image
[]
|
ImagesMap
> ;
Parameter
Returns
getAll(opts, cb)
getAll
(
opts
:
GetOptions
|
string
,
cb
:
GetAllCallback
)
:
void
;
Parameters
Returns
getLatest(cb)
getLatest
(
cb
:
GetLatestCallback
)
:
void
;
Get all available images, but only return the newest one.
Parameter
Returns Type
Description
void
{Promise} if callback is omitted.
getLatest(opts)
getLatest
(
opts
?:
GetOptions
|
string
)
:
Promise<Image
|
ImageMap
> ;
Parameter
Returns
getLatest(opts, cb)
getLatest
(
opts
:
GetOptions
|
string
,
cb
:
GetLatestCallback
)
:
void
;
Parameters
Returns
getProjectId()
getProjectId
()
:
Promise<string>
;
Returns
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 2025-09-04 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 2025-09-04 UTC."],[],[],null,[]]