Table of Contents

Class AuthToken

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Config for auth_tokens.create parameters.

public record AuthToken : IEquatable<AuthToken>
Inheritance
AuthToken
Implements
Inherited Members

Properties

Name

The name of the auth token.

[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a AuthToken object.

public static AuthToken? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

AuthToken

The deserialized AuthToken object, or null if deserialization fails.