Class Environment
java.lang.Object
com.google.genai.gaos.models.environments.Environment
Environment
An execution environment for an agent.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEnvironment(String id) Environment(String created, Map<String, Object> customConfig, String environmentKey, String fileCount, String id, String lastAccessed, EnvironmentMode mode, EnvironmentNetworkUnion network, String sizeBytes, List<Source> sources, Status status, String updated) -
Method Summary
Modifier and TypeMethodDescriptionstatic Environment.Builderbuilder()created()Output only.Output only.Output only.booleanOutput only.inthashCode()id()Required.Output only.mode()The compute lifecycle mode for an environment.network()Network configuration for the environment.Output only.sources()Sources to be mounted into the environment.status()Output only.toString()updated()Output only.withCreated(String created) Output only.withCustomConfig(Map<String, Object> customConfig) Output only.withEnvironmentKey(String environmentKey) Output only.withFileCount(String fileCount) Output only.Required.withLastAccessed(String lastAccessed) Output only.withMode(EnvironmentMode mode) The compute lifecycle mode for an environment.withNetwork(EnvironmentNetworkUnion network) Network configuration for the environment.withSizeBytes(String sizeBytes) Output only.withSources(List<Source> sources) Sources to be mounted into the environment.withStatus(Status status) Output only.withUpdated(String updated) Output only.
-
Constructor Details
-
Environment
public Environment(@Nullable String created, @Nullable Map<String, Object> customConfig, @Nullable String environmentKey, @Nullable String fileCount, @Nonnull String id, @Nullable String lastAccessed, @Nullable EnvironmentMode mode, @Nullable EnvironmentNetworkUnion network, @Nullable String sizeBytes, @Nullable List<Source> sources, @Nullable Status status, @Nullable String updated) -
Environment
-
-
Method Details
-
created
Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). -
customConfig
Output only. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only populated for `self_hosted` environments when configured. -
environmentKey
Output only. Secret token generated upon environment creation for self_hosted environments. Used by the self-hosted sandbox daemon to authenticate polling and streaming requests. Only returned when the environment is created; omitted when getting or listing environments later. -
fileCount
Output only. The number of files in the environment, output only. -
id
Required. Output only. The ID of the environment. -
lastAccessed
Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). -
mode
The compute lifecycle mode for an environment. -
network
Network configuration for the environment. -
sizeBytes
Output only. The total size of the environment files in bytes, output only. -
sources
Sources to be mounted into the environment. -
status
Output only. The status of the environment container. -
updated
Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). -
builder
-
withCreated
Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). -
withCustomConfig
Output only. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only populated for `self_hosted` environments when configured. -
withEnvironmentKey
Output only. Secret token generated upon environment creation for self_hosted environments. Used by the self-hosted sandbox daemon to authenticate polling and streaming requests. Only returned when the environment is created; omitted when getting or listing environments later. -
withFileCount
Output only. The number of files in the environment, output only. -
withId
Required. Output only. The ID of the environment. -
withLastAccessed
Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). -
withMode
The compute lifecycle mode for an environment. -
withNetwork
Network configuration for the environment. -
withSizeBytes
Output only. The total size of the environment files in bytes, output only. -
withSources
Sources to be mounted into the environment. -
withStatus
Output only. The status of the environment container. -
withUpdated
Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). -
equals
-
hashCode
public int hashCode() -
toString
-