Package com.google.genai.types
Class ApiAuthApiKeyConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ApiAuthApiKeyConfig
The API secret.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ApiAuthApiKeyConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired.The API key string.static ApiAuthApiKeyConfig.Builder
builder()
Instantiates a builder for ApiAuthApiKeyConfig.static ApiAuthApiKeyConfig
Deserializes a JSON string to a ApiAuthApiKeyConfig object.abstract ApiAuthApiKeyConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ApiAuthApiKeyConfig
public ApiAuthApiKeyConfig()
-
-
Method Details
-
apiKeySecretVersion
Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version} -
apiKeyString
The API key string. Either this or `api_key_secret_version` must be set. -
builder
Instantiates a builder for ApiAuthApiKeyConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ApiAuthApiKeyConfig object.
-