Table of Contents

Struct AuthType

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

Type of auth scheme. This enum is not supported in Gemini API.

[JsonConverter(typeof(AuthTypeConverter))]
public readonly record struct AuthType : IEquatable<AuthType>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<AuthType> AllValues { get; }

Property Value

IReadOnlyList<AuthType>

ApiKeyAuth

API Key Auth.

public static AuthType ApiKeyAuth { get; }

Property Value

AuthType

AuthTypeUnspecified

public static AuthType AuthTypeUnspecified { get; }

Property Value

AuthType

GoogleServiceAccountAuth

Google Service Account Auth.

public static AuthType GoogleServiceAccountAuth { get; }

Property Value

AuthType

HttpBasicAuth

HTTP Basic Auth.

public static AuthType HttpBasicAuth { get; }

Property Value

AuthType

NoAuth

No Auth.

public static AuthType NoAuth { get; }

Property Value

AuthType

Oauth

OAuth auth.

public static AuthType Oauth { get; }

Property Value

AuthType

OidcAuth

OpenID Connect (OIDC) Auth.

public static AuthType OidcAuth { get; }

Property Value

AuthType

Value

public string Value { get; }

Property Value

string

Methods

Equals(AuthType)

public bool Equals(AuthType other)

Parameters

other AuthType

Returns

bool

FromString(string)

public static AuthType FromString(string value)

Parameters

value string

Returns

AuthType

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator AuthType(string)

public static implicit operator AuthType(string value)

Parameters

value string

Returns

AuthType