Class CreateEnvironmentRequest
java.lang.Object
com.google.genai.gaos.models.environments.CreateEnvironmentRequest
CreateEnvironmentRequest
Request for creating an environment.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateEnvironmentRequest(Map<String, Object> customConfig, Map<String, Env> env, String fromEnvironment, EnvironmentMode mode, CreateEnvironmentRequestNetworkUnion network, List<Source> sources, String systemInstruction) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Optional.env()Environment variables to set in the sandbox environment.booleanOptional.inthashCode()mode()The compute lifecycle mode for an environment.network()Network configuration for the environment.sources()Sources to be mounted into the environment.Optional.toString()withCustomConfig(Map<String, Object> customConfig) Optional.Environment variables to set in the sandbox environment.withFromEnvironment(String fromEnvironment) Optional.withMode(EnvironmentMode mode) The compute lifecycle mode for an environment.Network configuration for the environment.withSources(List<Source> sources) Sources to be mounted into the environment.withSystemInstruction(String systemInstruction) Optional.
-
Constructor Details
-
CreateEnvironmentRequest
-
CreateEnvironmentRequest
public CreateEnvironmentRequest()
-
-
Method Details
-
customConfig
Optional. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only supported when `mode` is `SELF_HOSTED`. -
env
Environment variables to set in the sandbox environment. -
fromEnvironment
Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty. -
mode
The compute lifecycle mode for an environment. -
network
Network configuration for the environment. -
sources
Sources to be mounted into the environment. -
systemInstruction
Optional. System instruction applied to interactions running in this environment. Only supported for `SELF_HOSTED` environments, where it is recommended. -
builder
-
withCustomConfig
Optional. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only supported when `mode` is `SELF_HOSTED`. -
withEnv
Environment variables to set in the sandbox environment. -
withFromEnvironment
Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty. -
withMode
The compute lifecycle mode for an environment. -
withNetwork
Network configuration for the environment. -
withSources
Sources to be mounted into the environment. -
withSystemInstruction
Optional. System instruction applied to interactions running in this environment. Only supported for `SELF_HOSTED` environments, where it is recommended. -
equals
-
hashCode
public int hashCode() -
toString
-