AuthConfigOauthConfig

@Serializable
data class AuthConfigOauthConfig(val accessToken: String? = null, val serviceAccount: String? = null)

Config for user oauth. This data type is not supported in Gemini API.

Constructors

Link copied to clipboard
constructor(accessToken: String? = null, serviceAccount: String? = null)

Properties

Link copied to clipboard
val accessToken: String? = null

Access token for extension endpoint. Only used to propagate token from [ExecuteExtensionRequest.runtime_auth_config] at request time.

Link copied to clipboard
val serviceAccount: String? = null

The service account used to generate access tokens for executing the Extension. - If the service account is specified, the iam.serviceAccounts.getAccessToken permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.