Table of Contents

Class AuthConfigHttpBasicAuthConfig

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

Config for HTTP Basic Authentication. This data type is not supported in Gemini API.

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

Properties

CredentialSecret

The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: projects/{project}/secrets/{secrete}/versions/{version} - 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.

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a AuthConfigHttpBasicAuthConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

AuthConfigHttpBasicAuthConfig

The deserialized AuthConfigHttpBasicAuthConfig object, or null if deserialization fails.