ApiAuthApiKeyConfig

@Serializable
data class ApiAuthApiKeyConfig(val apiKeySecretVersion: String? = null, val apiKeyString: String? = null)

The API secret. This data type is not supported in Gemini API.

Constructors

Link copied to clipboard
constructor(apiKeySecretVersion: String? = null, apiKeyString: String? = null)

Properties

Link copied to clipboard

Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}

Link copied to clipboard
val apiKeyString: String? = null

The API key string. Either this or api_key_secret_version must be set.