Skip to main content

thumbnails

Creates, updates, deletes, gets or lists a thumbnails resource.

Overview​

Namethumbnails
TypeResource
Idfirebase.toolresults.thumbnails

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
errorobjectAn error explaining why the thumbnail could not be rendered. (id: Status)
sourceImageobjectA reference to a ToolExecution output file. (id: ToolOutputReference)
stepIdstringThe step to which the image is attached. Always set.
thumbnailobjectThe thumbnail. (id: Thumbnail)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectId, historyId, executionId, stepIdpageSize, pageTokenLists thumbnails of images attached to a step. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read from the project, or from any of the images - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the step does not exist, or if any of the images do not exist

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
executionIdstring
historyIdstring
projectIdstring
stepIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Lists thumbnails of images attached to a step. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read from the project, or from any of the images - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the step does not exist, or if any of the images do not exist

SELECT
error,
sourceImage,
stepId,
thumbnail
FROM firebase.toolresults.thumbnails
WHERE projectId = '{{ projectId }}' -- required
AND historyId = '{{ historyId }}' -- required
AND executionId = '{{ executionId }}' -- required
AND stepId = '{{ stepId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;