AuthConfig

@Serializable
data class AuthConfig(val apiKey: String? = null, val apiKeyConfig: ApiKeyConfig? = null, val authType: AuthType? = null, val googleServiceAccountConfig: AuthConfigGoogleServiceAccountConfig? = null, val httpBasicAuthConfig: AuthConfigHttpBasicAuthConfig? = null, val oauthConfig: AuthConfigOauthConfig? = null, val oidcConfig: AuthConfigOidcConfig? = null)

The authentication config to access the API.

Constructors

Link copied to clipboard
constructor(apiKey: String? = null, apiKeyConfig: ApiKeyConfig? = null, authType: AuthType? = null, googleServiceAccountConfig: AuthConfigGoogleServiceAccountConfig? = null, httpBasicAuthConfig: AuthConfigHttpBasicAuthConfig? = null, oauthConfig: AuthConfigOauthConfig? = null, oidcConfig: AuthConfigOidcConfig? = null)

Properties

Link copied to clipboard
val apiKey: String? = null

The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API.

Link copied to clipboard

Config for API key auth.

Link copied to clipboard
val authType: AuthType? = null

Type of auth scheme.

Link copied to clipboard

Config for Google Service Account auth.

Link copied to clipboard

Config for HTTP Basic auth.

Link copied to clipboard

Config for user oauth.

Link copied to clipboard

Config for user OIDC auth.