Skip to main content

tokens

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

Overview

Nametokens
TypeResource
Idgemini.auth_tokens.tokens

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertCreates a token that can be used to constrain the behavior of a BidiGenerateContent session.

Parameters

This resource's methods take no path, query, or request-body parameters; authentication and API-version headers are handled automatically.

INSERT examples

Creates a token that can be used to constrain the behavior of a BidiGenerateContent session.

INSERT INTO gemini.auth_tokens.tokens (
newSessionExpireTime,
uses,
fieldMask,
bidiGenerateContentSetup,
expireTime,
interactionId
)
SELECT
'{{ newSessionExpireTime }}',
{{ uses }},
'{{ fieldMask }}',
'{{ bidiGenerateContentSetup }}',
'{{ expireTime }}',
'{{ interactionId }}'
RETURNING
name,
bidiGenerateContentSetup,
expireTime,
fieldMask,
interactionId,
newSessionExpireTime,
uses
;