Class AuthConfigOauthConfig
Config for user oauth. This data type is not supported in Gemini API.
public record AuthConfigOauthConfig : IEquatable<AuthConfigOauthConfig>
- Inheritance
-
AuthConfigOauthConfig
- Implements
- Inherited Members
Properties
AccessToken
Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
[JsonPropertyName("accessToken")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? AccessToken { get; set; }
Property Value
ServiceAccount
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.
[JsonPropertyName("serviceAccount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ServiceAccount { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a AuthConfigOauthConfig object.
public static AuthConfigOauthConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- AuthConfigOauthConfig
The deserialized AuthConfigOauthConfig object, or null if deserialization fails.