Class EnvironmentVariableConfig
java.lang.Object
com.google.genai.gaos.models.credentials.EnvironmentVariableConfig
- All Implemented Interfaces:
CredentialCreateParams
EnvironmentVariableConfig
Configuration for environment variable credentials.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentVariableConfig(String id, EnvironmentVariableConfigInjectionLocation injectionLocation, String value) EnvironmentVariableConfig(String id, EnvironmentVariableConfigInjectionLocation injectionLocation, List<String> trustedDomains, String value) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleaninthashCode()id()Required.toString()Optional.type()value()Required.withInjectionLocation(EnvironmentVariableConfigInjectionLocation injectionLocation) Required.withTrustedDomains(List<String> trustedDomains) Optional.Required.
-
Constructor Details
-
EnvironmentVariableConfig
public EnvironmentVariableConfig(@Nonnull String id, @Nonnull EnvironmentVariableConfigInjectionLocation injectionLocation, @Nullable List<String> trustedDomains, @Nonnull String value) -
EnvironmentVariableConfig
public EnvironmentVariableConfig(@Nonnull String id, @Nonnull EnvironmentVariableConfigInjectionLocation injectionLocation, @Nonnull String value)
-
-
Method Details
-
id
-
injectionLocation
Required. Locations where the environment variable can be injected in outgoing HTTP requests. Must contain at least one location. Accepts either a single location (e.g. "header") or an array of locations. -
trustedDomains
Optional. List of domains allowed to receive this environment variable value in HTTP requests. -
type
- Specified by:
typein interfaceCredentialCreateParams
-
value
Required. Input only. Secret value of the environment variable.Write-only; never returned in responses.
-
builder
-
withId
-
withInjectionLocation
public EnvironmentVariableConfig withInjectionLocation(@Nonnull EnvironmentVariableConfigInjectionLocation injectionLocation) Required. Locations where the environment variable can be injected in outgoing HTTP requests. Must contain at least one location. Accepts either a single location (e.g. "header") or an array of locations. -
withTrustedDomains
Optional. List of domains allowed to receive this environment variable value in HTTP requests. -
withValue
Required. Input only. Secret value of the environment variable.Write-only; never returned in responses.
-
equals
-
hashCode
public int hashCode() -
toString
-