Class EnvironmentNetworkEgressAllowlist
java.lang.Object
com.google.genai.gaos.models.interactions.EnvironmentNetworkEgressAllowlist
EnvironmentNetworkEgressAllowlist
Outbound networking configuration for the sandbox. Accepts an object with an 'allowlist' array to restrict traffic, or the string 'disabled' to turn off all network access. Omit entirely to allow all outbound traffic with no header injection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Method Summary
-
Method Details
-
of
-
of
-
allowlist
Returns anOptionalcontaining the value if it is of typeAllowlist, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theAllowlistvalue, or empty if not of this type
-
disabled
Returns anOptionalcontaining the value if it is of typeDisabled, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theDisabledvalue, or empty if not of this type
-
asJson
Returns anOptionalcontaining the value as aJsonNode. This accessor returns the raw JSON when the value doesn't match any of the defined union types.- Returns:
- an
Optionalcontaining theJsonNodevalue, or empty if value matched a known type
-
equals
-
hashCode
public int hashCode() -
toString
-