Skip to main content

shelves

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

Overview

Nameshelves
TypeResource
Idgoogle.libraryagent.shelves

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The resource name of the shelf. Shelf names have the form shelves/{shelf_id}. The name is ignored when creating a shelf.
themestringThe theme of the shelf

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectshelvesIdGets a shelf. Returns NOT_FOUND if the shelf does not exist.
listselectpageSize, pageTokenLists shelves. The order is unspecified but deterministic. Newly created shelves will not necessarily be added to the end of this list.

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
shelvesIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a shelf. Returns NOT_FOUND if the shelf does not exist.

SELECT
name,
theme
FROM google.libraryagent.shelves
WHERE shelvesId = '{{ shelvesId }}' -- required;