Package com.google.genai.types
Class AuthConfigHttpBasicAuthConfig
-
- All Implemented Interfaces:
public abstract class AuthConfigHttpBasicAuthConfig extends JsonSerializable
Config for HTTP Basic Authentication. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classAuthConfigHttpBasicAuthConfig.BuilderBuilder for AuthConfigHttpBasicAuthConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AuthConfigHttpBasicAuthConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>credentialSecret()Required. static AuthConfigHttpBasicAuthConfig.Builderbuilder()Instantiates a builder for AuthConfigHttpBasicAuthConfig. abstract AuthConfigHttpBasicAuthConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static AuthConfigHttpBasicAuthConfigfromJson(String jsonString)Deserializes a JSON string to a AuthConfigHttpBasicAuthConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
credentialSecret
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
static AuthConfigHttpBasicAuthConfig.Builder builder()
Instantiates a builder for AuthConfigHttpBasicAuthConfig.
-
toBuilder
abstract AuthConfigHttpBasicAuthConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static AuthConfigHttpBasicAuthConfig fromJson(String jsonString)
Deserializes a JSON string to a AuthConfigHttpBasicAuthConfig object.
-
-
-
-