Api Key Config
@Serializable
Config for authentication with API key. This data type is not supported in Gemini API.
Constructors
Link copied to clipboard
constructor(apiKeySecret: String? = null, apiKeyString: String? = null, httpElementLocation: HttpElementLocation? = null, name: String? = null)
Properties
Link copied to clipboard
Optional. The name of the SecretManager secret version resource storing the API key. Format: projects/{project}/secrets/{secrete}/versions/{version} - If both api_key_secret and api_key_string are specified, this field takes precedence over api_key_string. - If specified, the secretmanager.versions.access permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource.
Link copied to clipboard
Optional. The API key to be used in the request directly.
Link copied to clipboard
Optional. The location of the API key.