Class CreateAuthTokenRequest
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Request body for creating an ephemeral auth token (POST v1alpha/auth_tokens).
Most callers should use CreateAuthTokenConfig, which builds the field mask for you.
public class CreateAuthTokenRequest
- Inheritance
-
CreateAuthTokenRequest
- Inherited Members
- Extension Methods
Properties
ExpireTime
When the token expires. Defaults to 30 minutes from now on the server.
[JsonPropertyName("expireTime")]
public Timestamp? ExpireTime { get; set; }
Property Value
FieldMask
Comma-separated setup fields that are locked to the values in LiveClientSetup. When the setup is set and this is omitted, all setup fields are locked.
[JsonPropertyName("fieldMask")]
public string? FieldMask { get; set; }
Property Value
LiveClientSetup
Live session setup that sessions using this token are constrained to.
[JsonPropertyName("bidiGenerateContentSetup")]
public LiveClientSetup? LiveClientSetup { get; set; }
Property Value
NewSessionExpireTime
The latest time the token can start a new session. Defaults to 1 minute from now on the server.
[JsonPropertyName("newSessionExpireTime")]
public Timestamp? NewSessionExpireTime { get; set; }
Property Value
Uses
How many sessions the token can start. Defaults to 1 on the server.
[JsonPropertyName("uses")]
public int? Uses { get; set; }
Property Value
- int?