Class AuthConfigHttpBasicAuthConfig
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a AuthConfigHttpBasicAuthConfig object.
public static AuthConfigHttpBasicAuthConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- AuthConfigHttpBasicAuthConfig
The deserialized AuthConfigHttpBasicAuthConfig object, or null if deserialization fails.