Class AuthConfigHttpBasicAuthConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AuthConfigHttpBasicAuthConfig

public abstract class AuthConfigHttpBasicAuthConfig extends JsonSerializable
Config for HTTP Basic Authentication.
  • Constructor Details

    • AuthConfigHttpBasicAuthConfig

      public AuthConfigHttpBasicAuthConfig()
  • Method Details

    • credentialSecret

      public abstract Optional<String> credentialSecret()
      Required. 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.
    • builder

      public static AuthConfigHttpBasicAuthConfig.Builder builder()
      Instantiates a builder for AuthConfigHttpBasicAuthConfig.
    • toBuilder

      public abstract AuthConfigHttpBasicAuthConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static AuthConfigHttpBasicAuthConfig fromJson(String jsonString)
      Deserializes a JSON string to a AuthConfigHttpBasicAuthConfig object.