Table of Contents

Class AuthConfigGoogleServiceAccountConfig

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

Config for Google Service Account Authentication. This data type is not supported in Gemini API.

public record AuthConfigGoogleServiceAccountConfig : IEquatable<AuthConfigGoogleServiceAccountConfig>
Inheritance
AuthConfigGoogleServiceAccountConfig
Implements
Inherited Members

Properties

ServiceAccount

Optional. The service account that the extension execution service runs as. - 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 specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.

[JsonPropertyName("serviceAccount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ServiceAccount { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a AuthConfigGoogleServiceAccountConfig object.

public static AuthConfigGoogleServiceAccountConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

AuthConfigGoogleServiceAccountConfig

The deserialized AuthConfigGoogleServiceAccountConfig object, or null if deserialization fails.